net/temac: FIX segfault when process old irqs
authorRicardo Ribalda <ricardo.ribalda@gmail.com>
Mon, 7 Nov 2011 23:31:58 +0000 (23:31 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Nov 2011 20:37:38 +0000 (15:37 -0500)
Do not enable the irq until the scatter gather registers are ready to
handle the data. Otherwise an irq from a packet send/received before
last close can lead to an access to an invalid memory region on the irq
handler.

Also, stop the dma engine on close.

Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found