net/ice/base: handle error gracefully in HW table calloc
authorQi Zhang <qi.z.zhang@intel.com>
Wed, 26 Aug 2020 03:14:07 +0000 (11:14 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 18 Sep 2020 16:55:09 +0000 (18:55 +0200)
commit8a15c69ce9abbdcc2b4593d157f16fc72783cd4a
tree62f8e8d1be8a6095f42b1c6e6619023d8989f095
parent48958a77befbc861b1dcea45d243935a082af58f
net/ice/base: handle error gracefully in HW table calloc

In the ice_init_hw_tbls API, if the ice_calloc for es->written
fails, catch that error and bail out gracefully, instead of
continuing with a NULL pointer.

Signed-off-by: Surabhi Boob <surabhi.boob@intel.com>
Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Acked-by: Qiming Yang <qiming.yang@intel.com>
drivers/net/ice/base/ice_flex_pipe.c