From: Mallikarjuna R Chilakala Date: Tue, 31 Mar 2009 21:34:44 +0000 (+0000) Subject: ixgbe: Patch to fix driver panic while freeing up tx & rx resources X-Git-Tag: MMI-PSA29.97-13-9~28705^2~36 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a20a1199a8a7f2bc92bd2a01e212980328e42bc7;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git ixgbe: Patch to fix driver panic while freeing up tx & rx resources When network interface is made active we were not handling the error scenarios properly to clean up rx & tx resources which might result in a driver panic. Signed-off-by: Mallikarjuna R Chilakala Acked-by: Peter P Waskiewicz Jr Signed-off-by: Jeff Kirsher Signed-off-by: David S. Miller --- diff --git a/drivers/net/ixgbe/ixgbe_main.c b/drivers/net/ixgbe/ixgbe_main.c index f36cff52d48f..ae2af45eb8f1 100644 --- a/drivers/net/ixgbe/ixgbe_main.c +++ b/drivers/net/ixgbe/ixgbe_main.c @@ -3486,10 +3486,10 @@ err_up: ixgbe_release_hw_control(adapter); ixgbe_free_irq(adapter); err_req_irq: - ixgbe_free_all_rx_resources(adapter); err_setup_rx: - ixgbe_free_all_tx_resources(adapter); + ixgbe_free_all_rx_resources(adapter); err_setup_tx: + ixgbe_free_all_tx_resources(adapter); ixgbe_reset(adapter); return err;