]> git.baikalelectronics.ru Git - kernel.git/commit
rt2x00: Fix NULL pointer error in adhoc/master mode
authorIvo van Doorn <ivdoorn@gmail.com>
Sat, 5 Jul 2008 13:11:57 +0000 (15:11 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 14 Jul 2008 18:30:06 +0000 (14:30 -0400)
commit0a9f481c7307a820452d0023c54a5da65fb4b5f8
tree4250c4fc2b84b6e2043614eac7c0781f0b3feb1d
parent7a0a3a7d0b94521d9ee078fb32eae6f37f4fdb4a
rt2x00: Fix NULL pointer error in adhoc/master mode

As soon as an interface is enabled, and that interface is in adhoc or master mode,
the device will start raising beacondone interrupts. But before the first interrupt is
raised, mac80211 will probably not have send any beacons to the device yet, which
results in a NULL pointer error when the skb is being freed.

Note that the "raise beacondone interrupts without a beacon" is also a bug,
and will be addressed later. The more important bug however is preventing
the NULL pointer failt itself, since there might be other conditions that could trigger
it as well.

Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2x00queue.c