]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: check that pointer VSI is not null before dereferencing it
authorColin Ian King <colin.king@canonical.com>
Thu, 15 Feb 2018 19:50:52 +0000 (19:50 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 26 Feb 2018 20:36:46 +0000 (12:36 -0800)
commitcff373aa6cb063b7ee37e1624618953cfd428f0e
tree6f15c0279b2064058e11928ff1124c436ee71824
parent9e7b7e7d1bf168ff706c17b93b43eb8666cc4e44
i40e: check that pointer VSI is not null before dereferencing it

Function i40e_find_vsi_from_id can potentially return null, hence
VSI may be null, so defensively check it is non-null before
dereferencing it to check the seid.

Fixes: b93dcf254ebf ("i40e: Add and delete cloud filter")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Avinash Dayanand <avinash.dayanand@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c