staging: vt6656: [BUG] nsDMA_tx_packet: free tx context bBoolInUse
PATCH 1/1 staging: vt6656: [BUG] nsDMA_tx_packet: free tx context bBoolInUse
This reduces the number of free TX urbs when key is not found.
--- drivers/staging/vt6656/rxtx.c | 1 + 1 file changed, 1 insertion(+)
drivers/staging/vt6656/rxtx.c +1 -0
@@ -3045,6 +3045,7 @@ int nsDMA_tx_packet(PSDevice pDevice, unsigned int uDMAIdx, struct sk_buff *skb)if (pTransmitKey ==NULL ) {DBG_PRT (MSG_LEVEL_DEBUG ,KERN_INFO "return no tx key\n" ); + pContext->bBoolInUse = FALSE;dev_kfree_skb_irq (skb); pStats->tx_dropped++;return STATUS_FAILURE ;
Signature · 1 line
1.7.10.4