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

From: Andy Shevchenko
Date: Mon May 23 2022 - 11:23:00 EST


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>

For the future independently of the subsystem or mailing list, the tag
block (above) mustn't have lank lines.

--
With Best Regards,
Andy Shevchenko