[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <87r14p1qkw.fsf@kernel.org>
Date: Thu, 19 May 2022 18:37:19 +0300
From: Kalle Valo <kvalo@...nel.org>
To: Yongzhi Liu <lyz_cs@....edu.cn>
Cc: amitkarwar@...il.com, ganapathi017@...il.com,
sharvari.harisangam@....com, huxinming820@...il.com,
davem@...emloft.net, edumazet@...gle.com, kuba@...nel.org,
pabeni@...hat.com, arend.vanspriel@...adcom.com,
linux-wireless@...r.kernel.org, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org, fuyq@....pku.edu.cn
Subject: Re: [PATCH] mwifiex: Fix potential dereference of NULL pointer
Yongzhi Liu <lyz_cs@....edu.cn> writes:
> If 'card' is not valid, then we need to check the
> field 'adapter' and 'priv_num' to avoid use of NULL
> pointer in function 'mwifiex_get_priv'. Fix this by
> adding the null pointer check on them.
Why? We don't add null checks for every access, why does this function
need it?
How did you find this? Is this something you found with a static checker
tool or by testing with a real device?
> Fixes: 21c5c83ce ("mwifiex: support sysfs initiated device coredump")
Format is wrong, it should be:
Fixes: 21c5c83ce833 ("mwifiex: support sysfs initiated device coredump")
--
https://patchwork.kernel.org/project/linux-wireless/list/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
Powered by blists - more mailing lists