Re: Re: [PATCH] hv_netvsc: Fix potential dereference of NULL pointer

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





> -----Original Messages-----
> From: "Andy Shevchenko" <andy.shevchenko@xxxxxxxxx>
> Sent Time: 2022-05-23 23:21:54 (Monday)
> To: "Yongzhi Liu" <lyz_cs@xxxxxxxxxx>
> Cc: "Andy Gross" <agross@xxxxxxxxxx>, "Bjorn Andersson" <bjorn.andersson@xxxxxxxxxx>, "Jonathan Cameron" <jic23@xxxxxxxxxx>, "Lars-Peter Clausen" <lars@xxxxxxxxxx>, "Stanimir Varbanov" <svarbanov@xxxxxxxxxx>, "Ivan T. Ivanov" <iivanov@xxxxxxxxxx>, "Jonathan Cameron" <jonathan.cameron@xxxxxxxxxx>, linux-arm-msm <linux-arm-msm@xxxxxxxxxxxxxxx>, linux-iio <linux-iio@xxxxxxxxxxxxxxx>, "Linux Kernel Mailing List" <linux-kernel@xxxxxxxxxxxxxxx>, fuyq@xxxxxxxxxxxxxx
> Subject: Re: [PATCH] hv_netvsc: Fix potential dereference of NULL pointer
> 
> On Sat, May 21, 2022 at 6:27 AM Yongzhi Liu <lyz_cs@xxxxxxxxxx> wrote:
> >
> > The return value of netvsc_devinfo_get()
> > needs to be checked to avoid use of NULL
> > pointer in case of an allocation failure.
> 
> > Fixes: 0efeea5fb ("hv_netvsc: Add the support of hibernation")
> >
> > Signed-off-by: Yongzhi Liu <lyz_cs@xxxxxxxxxx>
>

Thanks for your reply and advice.

> For the future independently of the subsystem or mailing list, the tag
> block (above) mustn't have lank lines.
>
> -- 
> With Best Regards,
> Andy Shevchenko




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [Linux for Sparc]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux