mirror of
https://github.com/torvalds/linux.git
synced 2024-12-04 01:51:34 +00:00
rtw88: Use kfree_skb() instead of kfree()
sk_buff structs need to be freed with kfree_skb(), not kfree().
Fixes: b6c12908a3
("rtw88: Add wowlan net-detect support")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
parent
16bbc3eb83
commit
bafbc6f0b5
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user