Commit a8aa6a6d authored by Jiasheng Jiang's avatar Jiasheng Jiang Committed by Jakub Kicinski
Browse files

ice: Add check for devm_kzalloc()



Add check for the return value of devm_kzalloc() to guarantee the success
of allocation.

Fixes: 42c2eb6b ("ice: Implement devlink-rate API")
Signed-off-by: default avatarJiasheng Jiang <jiashengjiangcool@gmail.com>
Reviewed-by: default avatarMichal Swiatkowski <michal.swiatkowski@linux.intel.com>
Link: https://patch.msgid.link/20250131013832.24805-1-jiashengjiangcool@gmail.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 92191dd1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment