]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
wifi: mac80211: mark iface work SKBs as consumed
authorJohannes Berg <johannes.berg@intel.com>
Fri, 16 Jan 2026 08:21:15 +0000 (09:21 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 19 Jan 2026 09:22:35 +0000 (10:22 +0100)
Using kfree_skb() here is misleading when looking at
traces, since these frames have been handled. Use
consume_skb() instead.

Link: https://patch.msgid.link/20260116092115.1db534bdc12c.Ic0adae06684a6871144398d15cf7700c57620baa@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/iface.c

index 7b0aa24c1f97ca3567848502fbb44561d32ba1d2..3ce94b95decd64eea4ea063ae98c111bdfd57e9c 100644 (file)
@@ -8,7 +8,7 @@
  * Copyright 2008, Johannes Berg <johannes@sipsolutions.net>
  * Copyright 2013-2014  Intel Mobile Communications GmbH
  * Copyright (c) 2016        Intel Deutschland GmbH
- * Copyright (C) 2018-2025 Intel Corporation
+ * Copyright (C) 2018-2026 Intel Corporation
  */
 #include <linux/slab.h>
 #include <linux/kernel.h>
@@ -1789,7 +1789,7 @@ static void ieee80211_iface_work(struct wiphy *wiphy, struct wiphy_work *work)
                else
                        ieee80211_iface_process_skb(local, sdata, skb);
 
-               kfree_skb(skb);
+               consume_skb(skb);
                kcov_remote_stop();
        }
 
@@ -1798,7 +1798,7 @@ static void ieee80211_iface_work(struct wiphy *wiphy, struct wiphy_work *work)
                kcov_remote_start_common(skb_get_kcov_handle(skb));
 
                ieee80211_iface_process_status(sdata, skb);
-               kfree_skb(skb);
+               consume_skb(skb);
 
                kcov_remote_stop();
        }