diff options
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/b43legacy/pio.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/b43legacy/pio.c b/drivers/net/wireless/b43legacy/pio.c index e4f4c5c39e33..1f48ec7fbe9a 100644 --- a/drivers/net/wireless/b43legacy/pio.c +++ b/drivers/net/wireless/b43legacy/pio.c | |||
@@ -486,6 +486,9 @@ void b43legacy_pio_handle_txstatus(struct b43legacy_wldev *dev, | |||
486 | queue = parse_cookie(dev, status->cookie, &packet); | 486 | queue = parse_cookie(dev, status->cookie, &packet); |
487 | B43legacy_WARN_ON(!queue); | 487 | B43legacy_WARN_ON(!queue); |
488 | 488 | ||
489 | if (!packet->skb) | ||
490 | return; | ||
491 | |||
489 | queue->tx_devq_packets--; | 492 | queue->tx_devq_packets--; |
490 | queue->tx_devq_used -= (packet->skb->len + | 493 | queue->tx_devq_used -= (packet->skb->len + |
491 | sizeof(struct b43legacy_txhdr_fw3)); | 494 | sizeof(struct b43legacy_txhdr_fw3)); |