From: Breno Leitao Date: Thu, 26 Aug 2010 08:27:58 +0000 (+0000) Subject: qlge: reset the chip before freeing the buffers X-Git-Tag: MMI-PSA29.97-13-9~22097^2~153 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fe5f098055ed7f701bfb16f8f87378cf67de9a0e;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git qlge: reset the chip before freeing the buffers Qlge is freeing the buffers before stopping the card DMA, and this can cause some severe error, as a EEH event on PPC. This patch just stop the card and then free the resources. Signed-off-by: Breno Leitao Signed-off-by: Ron Mercer Signed-off-by: David S. Miller --- diff --git a/drivers/net/qlge/qlge_main.c b/drivers/net/qlge/qlge_main.c index 8d63f69b27d9..5f89e83501f4 100644 --- a/drivers/net/qlge/qlge_main.c +++ b/drivers/net/qlge/qlge_main.c @@ -3919,12 +3919,12 @@ static int ql_adapter_down(struct ql_adapter *qdev) for (i = 0; i < qdev->rss_ring_count; i++) netif_napi_del(&qdev->rx_ring[i].napi); - ql_free_rx_buffers(qdev); - status = ql_adapter_reset(qdev); if (status) netif_err(qdev, ifdown, qdev->ndev, "reset(func #%d) FAILED!\n", qdev->func); + ql_free_rx_buffers(qdev); + return status; }