ice: Fix for dereference of NULL pointer
stable inclusion from stable-5.10.30 commit b6968611029127ca6450421b2441ed9701a9b784 bugzilla: 51791 -------------------------------- commit 7a91d3f0 upstream. 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: 9daf8208 ("ice: Add support for switch filter programming") Signed-off-by: NJacek Bułatek <jacekx.bulatek@intel.com> Co-developed-by: NHaiyue Wang <haiyue.wang@intel.com> Signed-off-by: NHaiyue Wang <haiyue.wang@intel.com> Tested-by: NTony Brelinski <tonyx.brelinski@intel.com> Signed-off-by: NTony Nguyen <anthony.l.nguyen@intel.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: NChen Jun <chenjun102@huawei.com> Acked-by: N Weilong Chen <chenweilong@huawei.com> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
Showing
想要评论请 注册 或 登录