e1000e: stop cleaning when we reach tx_ring->next_to_use
Subsystems (2)
PATCH 1/1 e1000e: stop cleaning when we reach tx_ring->next_to_use
From: Terry Loftin <[email protected]>
Tx ring buffers after tx_ring->next_to_use are volatile and could change, possibly causing a crash. Stop cleaning when we hit tx_ring->next_to_use.
Signed-off-by Terry Loftin <[email protected]>
Acked-by Bruce Allan <[email protected]>
Signed-off-by Jeff Kirsher <[email protected]>
---
drivers/net/e1000e/netdev.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/net/e1000e/netdev.c +2 -0
@@ -660,6 +660,8 @@ static bool e1000_clean_tx_irq(struct e1000_adapter *adapter) i =0 ; } +if (i == tx_ring->next_to_use) +break ; eop = tx_ring->buffer_info[i].next_to_watch; eop_desc =E1000_TX_DESC (*tx_ring, eop); }
From: Jeff Kirsher <[email protected]>
Date: Fri, 09 Apr 2010 13:29:49 -0700
Quoted 9 lines
From: Terry Loftin <[email protected]>
Tx ring buffers after
tx_ring->next_to_useare volatile and could change, possibly causing a crash. Stop cleaning when we hittx_ring->next_to_use.Signed-off-by Terry Loftin <[email protected]>Acked-by Bruce Allan <[email protected]>Signed-off-by Jeff Kirsher <[email protected]>
Applied.