i40evf: null out ring pointers on free
authorMitch Williams <mitch.a.williams@intel.com>
Wed, 9 Dec 2015 23:50:30 +0000 (15:50 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 4 Feb 2016 04:37:06 +0000 (20:37 -0800)
commit10311540fab76c7e5530bf5f0267a3d1b8d5818e
treeb23ff2951a86f55efa9360b9fb70efffd1698573
parent406e734aa893fa5841e67de6d4f688ba70a82e4f
i40evf: null out ring pointers on free

Since we check these ring pointers to make sure we don't double-allocate
or double-free the rings, we had better null them out after we free
them. In very rare cases this can cause a panic if the driver is removed
during reset recovery.

Change-ID: Ib06eb4910a3058275c8f7ec5ef7f45baa4674f96
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