* [PATCH] staging: vt6656: [BUG] nsDMA_tx_packet: free tx context bBoolInUse
@ 2012-11-04 22:41 Malcolm Priestley
0 siblings, 0 replies; only message in thread
From: Malcolm Priestley @ 2012-11-04 22:41 UTC (permalink / raw)
To: gregkh; +Cc: linux-wireless
This reduces the number of free TX urbs when key is not found.
---
drivers/staging/vt6656/rxtx.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/staging/vt6656/rxtx.c b/drivers/staging/vt6656/rxtx.c
index 3a4933e..0f35a9a 100644
--- 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");
+ pContext->bBoolInUse = FALSE;
dev_kfree_skb_irq(skb);
pStats->tx_dropped++;
return STATUS_FAILURE;
--
1.7.10.4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2012-11-04 22:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-04 22:41 [PATCH] staging: vt6656: [BUG] nsDMA_tx_packet: free tx context bBoolInUse Malcolm Priestley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).