Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

b43legacy: Do not return TX_BUSY from op_tx

Never return TX_BUSY from op_tx. It doesn't make sense to return
TX_BUSY, if we can not transmit the packet.
Drop the packet and return TX_OK.

Signed-off-by: Michael Buesch <mb@bu3sch.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>

authored by

Michael Buesch and committed by
John W. Linville
664f2006 c9e8eae0

+4 -2
+4 -2
drivers/net/wireless/b43legacy/main.c
··· 2378 2378 } else 2379 2379 err = b43legacy_dma_tx(dev, skb, ctl); 2380 2380 out: 2381 - if (unlikely(err)) 2382 - return NETDEV_TX_BUSY; 2381 + if (unlikely(err)) { 2382 + /* Drop the packet. */ 2383 + dev_kfree_skb_any(skb); 2384 + } 2383 2385 return NETDEV_TX_OK; 2384 2386 } 2385 2387