]> git.baikalelectronics.ru Git - kernel.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)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sun, 13 Dec 2015 05:08:20 +0000 (21:08 -0800)
commitec28cb610182c7d2bfe3773716f3c5a2e76456b4
treee8b677b9c33457bf8e4870a5122508d9766ff955
parentd5b56cd3d0c4c37c60031010c2b1d5aeeb96e600
i40evf: check rings before freeing resources

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>
drivers/net/ethernet/intel/i40evf/i40evf_main.c