RE: [PATCH] net: wireless: realtek/rtw89: Add check null return of kmalloc

From: Ping-Ke Shih
Date: Tue Oct 29 2024 - 20:36:39 EST


Kalle Valo <kvalo@xxxxxxxxxx> wrote:
> Pei Xiao <xiaopei01@xxxxxxxxxx> writes:
>
> > kmalloc may fail, return might be NULL and will cause
> > NULL pointer dereference later.
> >
> > Signed-off-by: Pei Xiao <xiaopei01@xxxxxxxxxx>
>
> We use 'wifi: rtw89:' in the title, please check the documentation below
> for more.
>

A way to known subject prefix is to use git log with the files touched by
this patch:
git log --oneline drivers/net/wireless/realtek/rtw89/coex.c

Also subject can point out specific function. Then my opinion is
"wifi: rtw89: coex: check NULL return of kmalloc in btc_fw_set_monreg()"