Skip to content
Commit fef9f090 authored by Surabhi Boob's avatar Surabhi Boob Committed by Greg Kroah-Hartman
Browse files

ice: Graceful error handling in HW table calloc failure

[ Upstream commit bcc46cb8 ]

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: 32d63fa1

 ("ice: Initialize DDP package structures")
Signed-off-by: default avatarSurabhi Boob <surabhi.boob@intel.com>
Tested-by: default avatarAndrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: default avatarTony Nguyen <anthony.l.nguyen@intel.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 2fd47ea1
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment