]> git.baikalelectronics.ru Git - kernel.git/commitdiff
rtw88: Use kfree_skb() instead of kfree()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 29 Jan 2020 17:39:24 +0000 (20:39 +0300)
committerKalle 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: 39cdf914eb5c ("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

index b36928470fc046395cd4d511c8f91e8971e2b6a3..6867bf29d4c871e743ca8236d420b496f0d5e9d7 100644 (file)
@@ -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;