]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
wifi: rtw89: check skb headroom before adding radiotap
authorPing-Ke Shih <pkshih@realtek.com>
Wed, 6 May 2026 13:10:00 +0000 (21:10 +0800)
committerPing-Ke Shih <pkshih@realtek.com>
Wed, 13 May 2026 03:43:56 +0000 (11:43 +0800)
commitf77199a0cf6660d45d72010e76c3ab4788e9da5f
treec0a4e8ba2c3b935e06487ddf46c4e96076a5bb60
parent0805ddc2fdb64c142eb2be8429497dfd8c9bf296
wifi: rtw89: check skb headroom before adding radiotap

The radiotap headroom is allocated only if IEEE80211_CONF_MONITOR is set.
However, it is potentially racing that SKB allocation without radiotap
headroom but adding radiotap from matched PPDU status of another SKB.
Add a check to avoid the case.

Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20260506131000.1706298-15-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/core.c