projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
46bcf14
)
ixgbe: fix possible NULL pointer deference in shutdown path
author
Don Skidmore
<
[email protected]
>
Wed, 1 Dec 2010 20:54:53 +0000
(20:54 +0000)
committer
David S. Miller
<
[email protected]
>
Mon, 6 Dec 2010 21:16:29 +0000
(13:16 -0800)
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]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/ixgbe/ixgbe_main.c
patch
|
blob
|
history
diff --git
a/drivers/net/ixgbe/ixgbe_main.c
b/drivers/net/ixgbe/ixgbe_main.c
index fbad4d819608f234d0eff25175bccf9a8545c20b..eee0b298bd3616558ca8d9f5cf44a02fe95c68e7 100644
(file)
--- a/
drivers/net/ixgbe/ixgbe_main.c
+++ b/
drivers/net/ixgbe/ixgbe_main.c
@@
-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);
}