]> git.baikalelectronics.ru Git - kernel.git/commit
ice: Graceful error handling in HW table calloc failure
authorSurabhi Boob <surabhi.boob@intel.com>
Thu, 30 Jul 2020 00:19:18 +0000 (17:19 -0700)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Sat, 1 Aug 2020 15:44:04 +0000 (08:44 -0700)
commitaeba2785177159869e8394e54234a8b38d4d6d83
treeda1dbfb406e1a9b5a8cd36807caf71c4b7df7bb4
parentd7ccb22a9d994ef046e59ffd72a91f4b29173e01
ice: Graceful error handling in HW table calloc failure

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

Fixes: 431494ab3c9a ("ice: Initialize DDP package structures")
Signed-off-by: Surabhi Boob <surabhi.boob@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_flex_pipe.c