]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
wifi: rtw89: usb: use common error path for skbs in rtw89_usb_rx_handler()
authorFedor Pchelkin <pchelkin@ispras.ru>
Tue, 4 Nov 2025 13:57:08 +0000 (16:57 +0300)
committerPing-Ke Shih <pkshih@realtek.com>
Thu, 6 Nov 2025 06:26:48 +0000 (14:26 +0800)
commit28a45575289f3292aa9cb7bacae18ba3ee7a6adf
treea9a3b0ece1c9b79eb4c7e8138ecb3c477b87b2ad
parent8adb609f645b42148c14989066a971bbb5f3587e
wifi: rtw89: usb: use common error path for skbs in rtw89_usb_rx_handler()

Allow adding rx_skb to rx_free_queue for later reuse on the common error
handling path, otherwise free it.

Found by Linux Verification Center (linuxtesting.org).

Fixes: 2135c28be6a8 ("wifi: rtw89: Add usb.{c,h}")
Acked-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Fedor Pchelkin <pchelkin@ispras.ru>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20251104135720.321110-2-pchelkin@ispras.ru
drivers/net/wireless/realtek/rtw89/usb.c