diff options
author | Ryder Lee <ryder.lee@mediatek.com> | 2022-05-26 21:35:32 +0800 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2022-06-29 11:43:15 +0200 |
commit | a4926abb787e2ef3ee2997e6ca8844d859478647 (patch) | |
tree | b0face7f71c88ec5c8938779be643156a6c9de3b /net/mac80211/util.c | |
parent | 03895c8414d748747900ede2cb603d0ed3eeae1c (diff) | |
download | lwn-a4926abb787e2ef3ee2997e6ca8844d859478647.tar.gz lwn-a4926abb787e2ef3ee2997e6ca8844d859478647.zip |
wifi: mac80211: check skb_shared in ieee80211_8023_xmit()
Add a missing skb_shared check into 802.3 path to prevent potential
use-after-free from happening. This also uses skb_share_check()
instead of open-coding in tx path.
Signed-off-by: Ryder Lee <ryder.lee@mediatek.com>
Link: https://lore.kernel.org/r/e7a73aaf7742b17e43421c56625646dfc5c4d2cb.1653571902.git.ryder.lee@mediatek.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/util.c')
0 files changed, 0 insertions, 0 deletions