projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ath10k: plug possible memory leak in WMI
[cascardo/linux.git]
/
drivers
/
net
/
wireless
/
ath
/
ath10k
/
wmi.c
diff --git
a/drivers/net/wireless/ath/ath10k/wmi.c
b/drivers/net/wireless/ath/ath10k/wmi.c
index
55f90c7
..
775fedf
100644
(file)
--- a/
drivers/net/wireless/ath/ath10k/wmi.c
+++ b/
drivers/net/wireless/ath/ath10k/wmi.c
@@
-110,6
+110,7
@@
static int ath10k_wmi_cmd_send(struct ath10k *ar, struct sk_buff *skb,
if (atomic_add_return(1, &ar->wmi.pending_tx_count) >
WMI_MAX_PENDING_TX_COUNT) {
/* avoid using up memory when FW hangs */
+ dev_kfree_skb(skb);
atomic_dec(&ar->wmi.pending_tx_count);
return -EBUSY;
}