ixgbe: fix possible NULL pointer deference in shutdown path
Subsystems (2)
PATCH 1/1 ixgbe: fix possible NULL pointer deference in shutdown path
From: Don Skidmore <[email protected]>
After freeing the rings we were not zeroing out the ring count values. This patch now clears these counts correctly.
Reported-by Yinghai Lu <[email protected]>
Signed-off-by Don Skidmore <[email protected]>
Tested-by Stephen Ko <[email protected]>
Signed-off-by Jeff Kirsher <[email protected]>
---
0 files changed, 0 insertions(+), 0 deletions(-)
drivers/net/ixgbe/ixgbe_main.c +3 -0
@@ -4771,6 +4771,9 @@ void ixgbe_clear_interrupt_scheme(struct ixgbe_adapter *adapter) adapter->rx_ring[i] =NULL ; } + adapter->num_tx_queues =0 ; + adapter->num_rx_queues =0 ; +ixgbe_free_q_vectors (adapter);ixgbe_reset_interrupt_capability (adapter); }
From: Jeff Kirsher <[email protected]>
Date: Wed, 01 Dec 2010 22:54:53 -0800
Quoted 9 lines
From: Don Skidmore <[email protected]>
After freeing the rings we were not zeroing out the ring count values. This patch now clears these counts correctly.
Reported-by Yinghai Lu <[email protected]>Signed-off-by Don Skidmore <[email protected]>Tested-by Stephen Ko <[email protected]>Signed-off-by Jeff Kirsher <[email protected]>
Applied.
Quoted 3 lines
---
0 files changed, 0 insertions(+), 0 deletions(-)
Whoa. Some stacked-GIT problem or something like that? Please check it out.