[Intel-wired-lan] [PATCH S51 09/13] ice: Graceful error handling in HW table calloc failure
Bowers, AndrewX
andrewx.bowers at intel.com
Fri Jul 31 19:58:01 UTC 2020
> -----Original Message-----
> From: Intel-wired-lan <intel-wired-lan-bounces at osuosl.org> On Behalf Of
> Tony Nguyen
> Sent: Wednesday, July 29, 2020 5:19 PM
> To: intel-wired-lan at lists.osuosl.org
> Subject: [Intel-wired-lan] [PATCH S51 09/13] ice: Graceful error handling in
> HW table calloc failure
>
> From: Surabhi Boob <surabhi.boob at intel.com>
>
> 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: 32d63fa1e9f3 ("ice: Initialize DDP package structures")
> Signed-off-by: Surabhi Boob <surabhi.boob at intel.com>
> ---
> drivers/net/ethernet/intel/ice/ice_flex_pipe.c | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
Tested-by: Andrew Bowers <andrewx.bowers at intel.com>
More information about the Intel-wired-lan
mailing list