]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Dec 2025 13:02:51 +0000 (14:02 +0100)
commitbcf44fe565bf1bf098fecd338a625db3180ec531
tree88a7d335a1c56f7484198e04a0e9e752c25cee25
parent9253f39bcf9af402a16ef6edd8bd502513bbef14
wifi: rtw89: usb: use common error path for skbs in rtw89_usb_rx_handler()

[ Upstream commit 28a45575289f3292aa9cb7bacae18ba3ee7a6adf ]

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
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/realtek/rtw89/usb.c