Skip to contentSkip to conversation

ixgbe: fix possible NULL pointer deference in shutdown path

PATCH Applied Jeff Kirsher 2 participants 2 messages Dec 2, 2010 – Dec 6, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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.

---

 0 files changed, 0 insertions(+), 0 deletions(-)
drivers/net/ixgbe/ixgbe_main.c +3 -0
index fbad4d8..eee0b29 100644
@@ -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);
 }
maintainer Applied
#1 lore raw

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.

Applied.

Quoted 3 lines

---

 0 files changed, 0 insertions(+), 0 deletions(-)

Whoa. Some stacked-GIT problem or something like that? Please check it out.