diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2020-01-29 18:39:24 +0100 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2020-02-12 17:19:51 +0100 |
commit | bafbc6f0b51b0bb8566c5d8ec255838c8cfe3545 (patch) | |
tree | 4d745685929c8657f0dbdac2c4bf237b46180725 /drivers/net/wireless/realtek/rtw88/fw.c | |
parent | rsi: fix null pointer dereference during rsi_shutdown() (diff) | |
download | linux-bafbc6f0b51b0bb8566c5d8ec255838c8cfe3545.tar.xz linux-bafbc6f0b51b0bb8566c5d8ec255838c8cfe3545.zip |
rtw88: Use kfree_skb() instead of kfree()
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>
Diffstat (limited to 'drivers/net/wireless/realtek/rtw88/fw.c')
-rw-r--r-- | drivers/net/wireless/realtek/rtw88/fw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/realtek/rtw88/fw.c b/drivers/net/wireless/realtek/rtw88/fw.c index b36928470fc0..6867bf29d4c8 100644 --- 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; |