Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

wifi: mac80211: mark iface work SKBs as consumed

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>

+3 -3
+3 -3
net/mac80211/iface.c
··· 8 8 * Copyright 2008, Johannes Berg <johannes@sipsolutions.net> 9 9 * Copyright 2013-2014 Intel Mobile Communications GmbH 10 10 * Copyright (c) 2016 Intel Deutschland GmbH 11 - * Copyright (C) 2018-2025 Intel Corporation 11 + * Copyright (C) 2018-2026 Intel Corporation 12 12 */ 13 13 #include <linux/slab.h> 14 14 #include <linux/kernel.h> ··· 1789 1789 else 1790 1790 ieee80211_iface_process_skb(local, sdata, skb); 1791 1791 1792 - kfree_skb(skb); 1792 + consume_skb(skb); 1793 1793 kcov_remote_stop(); 1794 1794 } 1795 1795 ··· 1798 1798 kcov_remote_start_common(skb_get_kcov_handle(skb)); 1799 1799 1800 1800 ieee80211_iface_process_status(sdata, skb); 1801 - kfree_skb(skb); 1801 + consume_skb(skb); 1802 1802 1803 1803 kcov_remote_stop(); 1804 1804 }