projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
bebbb29
)
staging: vt6656: nsDMA_tx_packet: free tx context bBoolInUse
author
Malcolm Priestley
<tvboxspy@gmail.com>
Sun, 4 Nov 2012 22:41:33 +0000
(22:41 +0000)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Tue, 13 Nov 2012 20:45:44 +0000
(12:45 -0800)
This reduces the number of free TX urbs when key is not found.
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6656/rxtx.c
patch
|
blob
|
history
diff --git
a/drivers/staging/vt6656/rxtx.c
b/drivers/staging/vt6656/rxtx.c
index 3a4933ecb63b0f9b2c807b010ffe48dcb98f8eb5..0f35a9ae3fc0e99624ccf887826d780fdccaf41e 100644
(file)
--- a/
drivers/staging/vt6656/rxtx.c
+++ b/
drivers/staging/vt6656/rxtx.c
@@
-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");
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;
dev_kfree_skb_irq(skb);
pStats->tx_dropped++;
return STATUS_FAILURE;