Skip to content
Commit 6ba1687e authored by 蒋家盛's avatar 蒋家盛 Committed by Greg Kroah-Hartman
Browse files

octeontx2-pf: Add check for devm_kcalloc

[ Upstream commit cd07eadd ]

As the devm_kcalloc may return NULL pointer,
it should be better to add check for the return
value, as same as the others.

Fixes: e8e095b3

 ("octeontx2-af: cn10k: Bandwidth profiles config support")
Signed-off-by: default avatarJiasheng Jiang <jiasheng@iscas.ac.cn>
Reviewed-by: default avatarMaciej Fijalkowski <maciej.fijalkowski@intel.com>
Link: https://lore.kernel.org/r/20221122055449.31247-1-jiasheng@iscas.ac.cn
Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 26c31e7c
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