ixgbe: Fix a memory leak in IEEE DCB
authorAlexander Duyck <alexander.h.duyck@intel.com>
Sat, 17 Mar 2012 02:39:16 +0000 (02:39 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 1 May 2012 01:54:43 +0000 (18:54 -0700)
commit2b1588c3fafc3fd2b3bc49202a380eaecbbc2193
treedc61fe55fbfdb5f74b0f31be5eac9956afde4559
parent9bd1be457d2b9568c3c8f8f6b8e450a501bff402
ixgbe: Fix a memory leak in IEEE DCB

The driver was freeing memory in shutdown instead of remove.  As a result
we were leaking memory if IEEE DCB was enabled and we loaded/unloaded the
driver.  This change moves the freeing of the memory into the remove
routine where it belongs.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Acked-by: John Fastabend <john.r.fastabend@intel.com>
Tested-by: Ross Brattain <ross.b.brattain@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c