]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
wifi: rtw89: use skb_dequeue() for queued ROC packets to prevent racing
authorPing-Ke Shih <pkshih@realtek.com>
Tue, 21 Oct 2025 13:33:56 +0000 (21:33 +0800)
committerPing-Ke Shih <pkshih@realtek.com>
Tue, 28 Oct 2025 01:47:55 +0000 (09:47 +0800)
commitf44a9b14a78f1e2e2c57dbc1f1e93889ad2f6ac0
tree3d6df3ec17cfbb91aeeb7b65e6712f26df968703
parentb47d748110fd2c2911b59b169b10cc14fd5d3648
wifi: rtw89: use skb_dequeue() for queued ROC packets to prevent racing

TX task can enqueue ROC skb, but other tasks dequeue the skb. Using
skb_queue_walk_safe() without locking will cause potential racing.
Use skb_dequeue() with lock instead.

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