]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ice: Check VF VSI Pointer Value in ice_vc_add_fdir_fltr()
authorXuanqiang Luo <luoxuanqiang@kylinos.cn>
Fri, 25 Apr 2025 22:26:32 +0000 (15:26 -0700)
committerJakub Kicinski <kuba@kernel.org>
Mon, 28 Apr 2025 22:59:13 +0000 (15:59 -0700)
commit425c5f266b2edeee0ce16fedd8466410cdcfcfe3
tree9f87b302be50002480b1972fcd85e037579e45f9
parent3ffcd7b657c9d96eb3ffe174449b4248dd7fc6a9
ice: Check VF VSI Pointer Value in ice_vc_add_fdir_fltr()

As mentioned in the commit baeb705fd6a7 ("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: 6ebbe97a4881 ("ice: Add a per-VF limit on number of FDIR filters")
Signed-off-by: Xuanqiang Luo <luoxuanqiang@kylinos.cn>
Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Link: https://patch.msgid.link/20250425222636.3188441-3-anthony.l.nguyen@intel.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/intel/ice/ice_virtchnl_fdir.c