Skip to content

Commit

Permalink
b43: Fix PIO skb clobber
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Michael Buesch authored and John W. Linville committed Jun 27, 2008
1 parent 40af48c commit 14a7dd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/b43/pio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 14a7dd6

Please sign in to comment.