linux/drivers/net/ethernet/intel/i40evf
Colin Ian King 703ba88548 i40evf: dereference VSI after VSI has been null checked
VSI is being dereferenced before the VSI null check; if VSI is
null we end up with a null pointer dereference.  Fix this by
performing VSI deference after the VSI null check.  Also remove
the need for using adapter by using vsi->back->cinst.

Detected by CoverityScan, CID#1419696, CID#1419697
("Dereference before null check")

Fixes: ed0e894de7 ("i40evf: add client interface")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
2017-03-27 16:47:44 -07:00
..
i40e_adminq_cmd.h i40e: fix up recent proxy and wol bits for X722_SUPPORT 2017-03-14 17:52:32 -07:00
i40e_adminq.c i40e: Implementation of ERROR state for NVM update state machine 2016-10-31 14:26:40 -07:00
i40e_adminq.h i40e: Move NVM variable out of AQ struct 2016-04-06 18:45:11 -07:00
i40e_alloc.h
i40e_common.c i40e: refactor AQ CMD buffer debug printing 2017-02-18 20:35:36 -08:00
i40e_devids.h i40e: Remove FPK HyperV VF device ID 2017-02-02 22:41:40 -08:00
i40e_hmc.h i40e: use BIT and BIT_ULL macros 2015-07-23 05:33:55 -07:00
i40e_lan_hmc.h
i40e_osdep.h move io-64-nonatomic*.h out of asm-generic 2015-10-15 00:21:07 +02:00
i40e_prototype.h i40e: Add functions which apply correct PHY access method for read and write operation 2016-12-06 21:09:39 -08:00
i40e_register.h i40evf: Remove PF specific register definitions from the VF 2015-08-26 15:05:17 -07:00
i40e_status.h
i40e_txrx.c i40e/i40evf: Clean-up process_skb_fields 2017-03-27 16:47:43 -07:00
i40e_txrx.h i40e: Drop FCoE code from core driver files 2017-03-27 16:47:43 -07:00
i40e_type.h i40e: Save link FEC info from link up event 2017-02-11 20:39:01 -08:00
i40e_virtchnl.h i40evf: add client interface 2017-03-15 01:31:38 -07:00
i40evf_client.c i40evf: dereference VSI after VSI has been null checked 2017-03-27 16:47:44 -07:00
i40evf_client.h i40evf: add client interface 2017-03-15 01:31:38 -07:00
i40evf_ethtool.c i40evf: use new api ethtool_{get|set}_link_ksettings 2017-03-20 16:43:30 -07:00
i40evf_main.c i40e/i40evf: Change version from 1.6.27 to 2.1.7 2017-03-15 02:01:27 -07:00
i40evf_virtchnl.c i40evf: add client interface 2017-03-15 01:31:38 -07:00
i40evf.h i40evf: add client interface 2017-03-15 01:31:38 -07:00
Makefile i40evf: add client interface 2017-03-15 01:31:38 -07:00