From: Michael Buesch Date: Tue, 24 Jun 2008 10:22:05 +0000 (+0200) Subject: b43: Fix PIO skb clobber X-Git-Tag: v2.6.27-rc1~969^2~254^2~10 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=14a7dd6f6c1e0b361a37b6df52d4dc2ea36757d2;p=linux-2.6-omap-h63xx.git b43: Fix PIO skb clobber 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 Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/b43/pio.c b/drivers/net/wireless/b43/pio.c index 8b1555d95f1..40159126759 100644 --- a/drivers/net/wireless/b43/pio.c +++ b/drivers/net/wireless/b43/pio.c @@ -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);