i40e: check that pointer VSI is not null before dereferencing it
authorColin Ian King <[email protected]>
Thu, 15 Feb 2018 19:50:52 +0000 (19:50 +0000)
committerJeff Kirsher <[email protected]>
Mon, 26 Feb 2018 20:36:46 +0000 (12:36 -0800)
commit46345b38e917bd2f27b3730adaa67e4160e1d94d
tree6f15c0279b2064058e11928ff1124c436ee71824
parente85c1b8234e65134ccf801938f98352a43263a9f
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: e284fc280473 ("i40e: Add and delete cloud filter")
Signed-off-by: Colin Ian King <[email protected]>
Acked-by: Avinash Dayanand <[email protected]>
Tested-by: Andrew Bowers <[email protected]>
Signed-off-by: Jeff Kirsher <[email protected]>
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c