i40evf: don't leak queue vectors
authorMitch Williams <mitch.a.williams@intel.com>
Fri, 1 Aug 2014 20:27:13 +0000 (13:27 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 3 Aug 2014 02:41:15 +0000 (19:41 -0700)
commitd31944d6f0872ba9536501c4850dfb20dea5bf64
tree8d4b65758333c3cf5732a8c0520585f01917e494
parentd3e2edb70ecf877b4e5f42314449fc648b18627b
i40evf: don't leak queue vectors

Fix a memory leak. Driver was allocating memory for queue vectors on
init but not freeing them on shutdown. These need to be freed at two
different times: during module unload, and during reset recovery when
the driver cannot contact the PF driver and needs to give up.

Change-ID: I7c1d0157a776e960d4da432dfe309035aad7c670
Signed-off-by: Mitch Williams <mitch.a.williams@intel.com>
Tested-by: Sibai Li <sibai.li@intel.com>
Signed-off-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/intel/i40evf/i40evf_main.c