ixgbe: Fix potential memory leak/driver panic issue while setting up Tx & Rx ring...
authorMallikarjuna R Chilakala <mallikarjuna.chilakala@intel.com>
Tue, 31 Mar 2009 21:35:24 +0000 (21:35 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Apr 2009 08:02:33 +0000 (01:02 -0700)
commitf9ed88549e2ec73922b788e3865282d221233662
tree1e7aa52d8022d8b328b5a9efde25a42a66431991
parent71fd570b23ee74bca052beb9e88f8f57fb668ac7
ixgbe: Fix potential memory leak/driver panic issue while setting up Tx & Rx ring parameters

While setting up the ring parameters using ethtool the driver can
panic or leak memory as ixgbe_open tries to setup tx & rx resources.
The updated logic will use ixgbe_down/up after successful allocation of
tx & rx resources

Signed-off-by: Mallikarjuna R Chilakala <mallikarjuna.chilakala@intel.com>
Signed-off-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
CC: stable@kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ixgbe/ixgbe_ethtool.c