]> git.baikalelectronics.ru Git - kernel.git/commit
pasemi_mac: Fix reuse of free'd skb
authorOlof Johansson <olof@lixom.net>
Tue, 4 Dec 2007 03:34:14 +0000 (21:34 -0600)
committerJeff Garzik <jeff@garzik.org>
Tue, 4 Dec 2007 19:53:49 +0000 (14:53 -0500)
commit362ef561e24c6bf34c30038e6ea1a6e3dbcadd01
tree667455cf1c3fa8c3085c93bbf3e0755b6fb28fe6
parent160c1d398386eeabc97f364d22676cc8cf59912e
pasemi_mac: Fix reuse of free'd skb

Turns out we're freeing the skb when we detect CRC error, but we're
not clearing out info->skb. We could either clear it and have the stack
reallocate it, or just leave it and the rx ring refill code will reuse
the one that was allocated.

Reusing a freed skb obviously caused some nasty crashes of various kind,
as reported by Brent Baude and David Woodhouse.

Signed-off-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/pasemi_mac.c