projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
16bbc3e
)
rtw88: Use kfree_skb() instead of kfree()
author
Dan Carpenter
<dan.carpenter@oracle.com>
Wed, 29 Jan 2020 17:39:24 +0000
(20:39 +0300)
committer
Kalle Valo
<kvalo@codeaurora.org>
Wed, 12 Feb 2020 16:19:51 +0000
(18:19 +0200)
sk_buff structs need to be freed with kfree_skb(), not kfree().
Fixes: b6c12908a33e ("rtw88: Add wowlan net-detect support")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtw88/fw.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/realtek/rtw88/fw.c
b/drivers/net/wireless/realtek/rtw88/fw.c
index b36928470fc046395cd4d511c8f91e8971e2b6a3..6867bf29d4c871e743ca8236d420b496f0d5e9d7 100644
(file)
--- a/
drivers/net/wireless/realtek/rtw88/fw.c
+++ b/
drivers/net/wireless/realtek/rtw88/fw.c
@@
-749,7
+749,7
@@
static struct sk_buff *rtw_nlo_info_get(struct ieee80211_hw *hw)
loc = rtw_get_rsvd_page_probe_req_location(rtwdev, ssid);
if (!loc) {
rtw_err(rtwdev, "failed to get probe req rsvd loc\n");
- kfree(skb);
+ kfree
_skb
(skb);
return NULL;
}
nlo_hdr->location[i] = loc;