]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
wifi: rtw89: fix leak in rtw89_core_send_nullfunc()
authorFedor Pchelkin <pchelkin@ispras.ru>
Fri, 19 Sep 2025 21:08:49 +0000 (00:08 +0300)
committerPing-Ke Shih <pkshih@realtek.com>
Mon, 22 Sep 2025 05:58:52 +0000 (13:58 +0800)
commita9f0064f4716b0fd97085015ea1dd398bdfdc946
tree7b339c4e2b30e7a2bfeef52832e7275d8b33f15d
parentc24248ed78f33ea299ea61d105355ba47157d49f
wifi: rtw89: fix leak in rtw89_core_send_nullfunc()

If there is no rtwsta_link found in rtw89_core_send_nullfunc(), allocated
skb is leaked.  Free it on the error handling path.

Found by Linux Verification Center (linuxtesting.org).

Fixes: a8ba4acab7db ("wifi: rtw89: send nullfunc based on the given link")
Signed-off-by: Fedor Pchelkin <pchelkin@ispras.ru>
Acked-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20250919210852.823912-4-pchelkin@ispras.ru
drivers/net/wireless/realtek/rtw89/core.c