[PATCH] e1000: zero-out pointers in e1000_free_desc_rings
authorJohn W. Linville <linville@tuxdriver.com>
Tue, 8 Nov 2005 20:59:30 +0000 (15:59 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 18 Nov 2005 18:52:39 +0000 (13:52 -0500)
commit6b27adb607282addcfe2707783dfcc28ba3a753b
tree23cbb0796320ac9f77f3c5613d9dd6bcb4bf690a
parente98fc4aae10b925ad5aa739c483abf78d80b66db
[PATCH] e1000: zero-out pointers in e1000_free_desc_rings

In e1000_free_desc_rings, zero-out pointers after the memory they
point to is freed.  The test rings are static and get re-used, and
failures during subsequent test setups can cause e1000_free_desc_rings
to get called with dirty pointers.  Dirty pointers can cause oopses
or crashes...

Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/e1000/e1000_ethtool.c