Commit d77fb7f7 authored by Malcolm Priestley's avatar Malcolm Priestley Committed by Greg Kroah-Hartman

staging: vt6656: nsDMA_tx_packet: free tx context bBoolInUse

This reduces the number of free TX urbs when key is not found.
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent bebbb29c
...@@ -3045,6 +3045,7 @@ int nsDMA_tx_packet(PSDevice pDevice, unsigned int uDMAIdx, struct sk_buff *skb) ...@@ -3045,6 +3045,7 @@ int nsDMA_tx_packet(PSDevice pDevice, unsigned int uDMAIdx, struct sk_buff *skb)
if (pTransmitKey == NULL) { if (pTransmitKey == NULL) {
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"return no tx key\n"); DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"return no tx key\n");
pContext->bBoolInUse = FALSE;
dev_kfree_skb_irq(skb); dev_kfree_skb_irq(skb);
pStats->tx_dropped++; pStats->tx_dropped++;
return STATUS_FAILURE; return STATUS_FAILURE;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment