mac80211: fix oops due to missing private data
authorLuis R. Rodriguez <lrodriguez@atheros.com>
Fri, 24 Jul 2009 23:57:25 +0000 (19:57 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 27 Jul 2009 19:24:19 +0000 (15:24 -0400)
commit21f5fc75deca63bc41c9d13007d35981d4485622
tree13b451930a6ff36ae651e52e5c359ea4387a7ea4
parentac88b6ecdfa629fd1261dab1504d78a56fd4cabf
mac80211: fix oops due to missing private data

This was caused by patch:

"mac80211: cooperate more with network namespaces"

The version of the patch applied doesn't match Johannes' latest:

http://johannes.sipsolutions.net/patches/kernel/all/LATEST/NNN-mac80211-netns.patch

The skb->cb virtual interface data wasn't being reset for
reuse so ath9k pooped out when trying to dereference the
private rate control info from the skb.

BUG: unable to handle kernel NULL pointer dereference
RIP: 0010:[<ffffffffa0258173>] ath_tx_rc_status+0x33/0x150 [ath9k]
<-- snip etc -->

Reported-by: Davide Pesavento <davidepesa@gmail.com>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/tx.c