]> www.infradead.org Git - users/jedix/linux-maple.git/commit
i40evf: check rings before freeing resources
authorMitch Williams <mitch.a.williams@intel.com>
Thu, 19 Nov 2015 19:34:18 +0000 (11:34 -0800)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 10 Mar 2016 16:36:37 +0000 (08:36 -0800)
commit8d2c09f9d2c3e6a50c42730fecbc0b0b01aea8ee
tree52be22ebb09d3b0c7d664166192fc6a68113060f
parent8d8b97371f704cf206fce8a1283fecd3fdc13e11
i40evf: check rings before freeing resources

Orabug: 22342532

If the driver gets unloaded during reset recovery, it's possible
that it will attempt to free resources when they're already free.

Add a check to make sure that the Tx and Rx rings actually exist
before dereferencing them to free resources.

Change-ID: I4d2b7e9ede49f634d421a4c5deaa5446bc755eee
Signed-off-by: Mitch Williams <mitch.a.williams@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
(cherry picked from commit fdb47ae87af537b24977a03bc69cfe1c5c55ca62)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/intel/i40evf/i40evf_main.c