[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <7e12c127.2a22e.180dd2cb2a3.Coremail.lyz_cs@pku.edu.cn>
Date: Fri, 20 May 2022 00:35:35 +0800 (GMT+08:00)
From: 刘永志 <lyz_cs@....edu.cn>
To: "kalle valo" <kvalo@...nel.org>
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
Subject: Re: [PATCH v2] iio: vadc: Fix potential dereference of NULL pointer
> -----Original Messages-----
> From: "Kalle Valo" <kvalo@...nel.org>
> Sent Time: 2022-05-19 23:30:51 (Thursday)
> 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 v2] iio: vadc: Fix potential dereference of NULL pointer
>
> Yongzhi Liu <lyz_cs@....edu.cn> writes:
>
> > The return value of vadc_get_channel() needs to be checked
> > to avoid use of NULL pointer. Fix this by adding the null
> > pointer check on prop.
> >
> > Fixes: 0917de94c ("iio: vadc: Qualcomm SPMI PMIC voltage ADC driver")
> >
> > Signed-off-by: Yongzhi Liu <lyz_cs@....edu.cn>
> > ---
> > drivers/iio/adc/qcom-spmi-vadc.c | 23 ++++++++++++++++++++++-
> > 1 file changed, 22 insertions(+), 1 deletion(-)
>
I'm sorry to send this to linux-wireless by mistake. I will cautiously submit patches later.
> Did you sent this to linux-wireless by mistake?
>
> --
> https://patchwork.kernel.org/project/linux-wireless/list/
>
> https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
Powered by blists - more mailing lists