Commit 0561f2e3 authored by Xuanqiang Luo's avatar Xuanqiang Luo Committed by Greg Kroah-Hartman
Browse files

ice: Check VF VSI Pointer Value in ice_vc_add_fdir_fltr()



[ Upstream commit 425c5f26 ]

As mentioned in the commit baeb705f ("ice: always check VF VSI
pointer values"), we need to perform a null pointer check on the return
value of ice_get_vf_vsi() before using it.

Fixes: 6ebbe97a ("ice: Add a per-VF limit on number of FDIR filters")
Signed-off-by: default avatarXuanqiang Luo <luoxuanqiang@kylinos.cn>
Reviewed-by: default avatarPrzemek Kitszel <przemyslaw.kitszel@intel.com>
Reviewed-by: default avatarSimon Horman <horms@kernel.org>
Signed-off-by: default avatarTony Nguyen <anthony.l.nguyen@intel.com>
Link: https://patch.msgid.link/20250425222636.3188441-3-anthony.l.nguyen@intel.com


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