]> www.infradead.org Git - users/jedix/linux-maple.git/commit
wifi: rtw89: coex: check NULL return of kmalloc in btc_fw_set_monreg()
authorPei Xiao <xiaopei01@kylinos.cn>
Wed, 30 Oct 2024 03:20:58 +0000 (11:20 +0800)
committerPing-Ke Shih <pkshih@realtek.com>
Wed, 6 Nov 2024 06:18:27 +0000 (14:18 +0800)
commit81df5ed446b448bdc327b7c7f0b50121fc1f4aa2
treebdf90cba0a21f5353e58526202fb066df0457059
parent95fa94562298deb37c407c9ebd1e57ab14fe9f13
wifi: rtw89: coex: check NULL return of kmalloc in btc_fw_set_monreg()

kmalloc may fail, return value might be NULL and will cause
NULL pointer dereference. Add check NULL return of kmalloc in
btc_fw_set_monreg().

Signed-off-by: Pei Xiao <xiaopei01@kylinos.cn>
Fixes: b952cb0a6e2d ("wifi: rtw89: coex: Add register monitor report v7 format")
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/516a91f3997534f708af43c7592cbafdd53dd599.1730253508.git.xiaopei01@kylinos.cn
drivers/net/wireless/realtek/rtw89/coex.c