linux_dsm_epyc7002/drivers/net/ethernet/intel/i40evf
Alan Brady 47d2a5d827 i40evf: check for msix_entries null dereference
It is possible for msix_entries to be freed by a previous suspend/remove
before a VF is closed.  This patch fixes the issue by checking for NULL
before dereferencing msix_entries and returning early in the case where
it is NULL within the i40evf_close code path.  Without this patch it is
possible to trigger a kernel panic through NULL dereference.

Change-ID: I92a2746e82533a889e25f91578eac9abd0388ae2
Signed-off-by: Alan Brady <alan.brady@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
2016-12-02 23:10:41 -08:00
..
i40e_adminq_cmd.h i40e: Add support for HMC resource and profile for X722 2016-08-19 21:26:58 -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 i40evf: Fix the headers and update copyright year. 2014-05-21 01:54:43 -07:00
i40e_common.c i40e: avoid potential null pointer dereference when assigning len 2016-09-22 22:33:40 -07:00
i40e_devids.h i40e: Remove device ID 0x37D4 2016-07-22 00:07:04 -07:00
i40e_hmc.h i40e: use BIT and BIT_ULL macros 2015-07-23 05:33:55 -07:00
i40e_lan_hmc.h i40e/i40evf: Big endian fixes for handling HMC 2014-06-26 04:44:57 -07:00
i40e_osdep.h move io-64-nonatomic*.h out of asm-generic 2015-10-15 00:21:07 +02:00
i40e_prototype.h i40e: implement and use Rx CTL helper functions 2016-02-18 23:59:15 -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 i40evf: Fix the headers and update copyright year. 2014-05-21 01:54:43 -07:00
i40e_txrx.c i40e: Reorder logic for coalescing RS bits 2016-10-31 14:26:40 -07:00
i40e_txrx.h i40e: Reorder logic for coalescing RS bits 2016-10-31 14:26:40 -07:00
i40e_type.h i40e: Add protocols over MCTP to i40e_aq_discover_capabilities 2016-12-02 22:59:04 -08:00
i40e_virtchnl.h i40e: group base mode VF offload flags 2016-10-28 23:28:39 -07:00
i40evf_ethtool.c i40evf: support queue-specific settings for interrupt moderation 2016-09-24 22:50:23 -07:00
i40evf_main.c i40evf: check for msix_entries null dereference 2016-12-02 23:10:41 -08:00
i40evf_virtchnl.c i40evf: Fix link state event handling 2016-09-22 22:33:40 -07:00
i40evf.h i40e/i40evf: fix interrupt affinity bug 2016-10-28 23:28:39 -07:00
Makefile i40evf: Fix the headers and update copyright year. 2014-05-21 01:54:43 -07:00