]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
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 8b1555d95f1c81654cafdbfc5fd3668203dd34a9..4015912675922f4a5e9f8e6249885f70d364c8b1 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);