b43: Fix PIO skb clobber
authorMichael Buesch <mb@bu3sch.de>
Tue, 24 Jun 2008 10:22:05 +0000 (12:22 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 27 Jun 2008 13:09:19 +0000 (09:09 -0400)
This fixes a clobber of the skb that was introduced by the
tx_control->cb conversion patches.
This bug causes a crash when the skb destructor is invoked. That happens
on skb_orphan or skb_kfree.

Signed-off-by: Michael Buesch <mb@bu3sch.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/b43/pio.c

index 8b1555d..4015912 100644 (file)
@@ -586,7 +586,7 @@ void b43_pio_handle_txstatus(struct b43_wldev *dev,
 
        spin_lock(&q->lock); /* IRQs are already disabled. */
 
-       info = (void *)pack->skb;
+       info = IEEE80211_SKB_CB(pack->skb);
        memset(&info->status, 0, sizeof(info->status));
 
        b43_fill_txstatus_report(info, status);