ice: Fix for dereference of NULL pointer
authorJacek Bułatek <jacekx.bulatek@intel.com>
Fri, 26 Feb 2021 21:19:29 +0000 (13:19 -0800)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Mon, 29 Mar 2021 17:37:49 +0000 (10:37 -0700)
commit7a91d3f02b04b2fb18c2dfa8b6c4e5a40a2753f5
treef18a34bc76aac6daa6c6edb3244612a7a65b9642
parent741b7b743bbcb5a3848e4e55982064214f900d2f
ice: Fix for dereference of NULL pointer

Add handling of allocation fault for ice_vsi_list_map_info.

Also *fi should not be NULL pointer, it is a reference to raw
data field, so remove this variable and use the reference
directly.

Fixes: 9daf8208dd4d ("ice: Add support for switch filter programming")
Signed-off-by: Jacek Bułatek <jacekx.bulatek@intel.com>
Co-developed-by: Haiyue Wang <haiyue.wang@intel.com>
Signed-off-by: Haiyue Wang <haiyue.wang@intel.com>
Tested-by: Tony Brelinski <tonyx.brelinski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_switch.c