Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net/ice/base: fix null pointer dereference
[ upstream commit 09f918e ] Added handling of allocation fault for ice_vsi_list_map_info Should also check dereference of NULL pointer to filters VSI list information for FWD_TO_VSI_LISt type only, otherwise, the FWD_TO_VSI type filters by the given VSI can't be located. Also the point *pi should not be NULL pointer, it is a reference to raw data field, so remove this variable, use the reference directly. Fixes: c7dd159 ("net/ice/base: add virtual switch code") Signed-off-by: Jacek Bułatek <jacekx.bulatek@intel.com> Signed-off-by: Haiyue Wang <haiyue.wang@intel.com> Signed-off-by: Qi Zhang <qi.z.zhang@intel.com> Acked-by: Qiming Yang <qiming.yang@intel.com>
- Loading branch information