ixgbe: fix possible NULL pointer deference in shutdown path
authorDon Skidmore <donald.c.skidmore@intel.com>
Wed, 1 Dec 2010 20:54:53 +0000 (20:54 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 6 Dec 2010 21:16:29 +0000 (13:16 -0800)
commitb8eb3a1046f68a5b8f284830d971c62688cd606b
tree354925d7a60fb63866a588b2c6c55567953602b2
parent46bcf14f44d8f31ecfdc8b6708ec15a3b33316d9
ixgbe: fix possible NULL pointer deference in shutdown path

After freeing the rings we were not zeroing out the ring count values.
This patch now clears these counts correctly.

Reported-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Don Skidmore <donald.c.skidmore@intel.com>
Tested-by: Stephen Ko <stephen.s.ko@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ixgbe/ixgbe_main.c