projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
690e781
)
ath9k_htc: rare leak in ath9k_hif_usb_alloc_tx_urbs()
author
Dan Carpenter
<
[email protected]
>
Fri, 14 May 2010 14:52:37 +0000
(16:52 +0200)
committer
John W. Linville
<
[email protected]
>
Mon, 24 May 2010 19:07:42 +0000
(15:07 -0400)
This is obviously a small picky thing. The original error handling code
doesn't free the most recent allocations which haven't been added to the
hif_dev->tx.tx_buf list yet.
Signed-off-by: Dan Carpenter <
[email protected]
>
Acked-by: Sujith <
[email protected]
>
Signed-off-by: John W. Linville <
[email protected]
>
drivers/net/wireless/ath/ath9k/hif_usb.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/ath/ath9k/hif_usb.c
b/drivers/net/wireless/ath/ath9k/hif_usb.c
index ac82911ee609d1f686ccfc46fafebff310a4407c..77b359162d6cad0a408754fff4cc8b9af64d3063 100644
(file)
--- a/
drivers/net/wireless/ath/ath9k/hif_usb.c
+++ b/
drivers/net/wireless/ath/ath9k/hif_usb.c
@@
-609,6
+609,10
@@
static int ath9k_hif_usb_alloc_tx_urbs(struct hif_device_usb *hif_dev)
return 0;
err:
+ if (tx_buf) {
+ kfree(tx_buf->buf);
+ kfree(tx_buf);
+ }
ath9k_hif_usb_dealloc_tx_urbs(hif_dev);
return -ENOMEM;
}