RE: [PATCH] net: hyperv: fix a NULL pointer dereference
From: Haiyang Zhang
Date: Mon Mar 11 2019 - 15:46:47 EST
> -----Original Message-----
> From: Kangjie Lu <kjlu@xxxxxxx>
> Sent: Monday, March 11, 2019 3:17 AM
> To: kjlu@xxxxxxx
> Cc: pakki001@xxxxxxx; KY Srinivasan <kys@xxxxxxxxxxxxx>; Haiyang Zhang
> <haiyangz@xxxxxxxxxxxxx>; Stephen Hemminger <sthemmin@xxxxxxxxxxxxx>;
> Sasha Levin <sashal@xxxxxxxxxx>; David S. Miller <davem@xxxxxxxxxxxxx>;
> linux-hyperv@xxxxxxxxxxxxxxx; netdev@xxxxxxxxxxxxxxx; linux-
> kernel@xxxxxxxxxxxxxxx
> Subject: [PATCH] net: hyperv: fix a NULL pointer dereference
>
> In case kvmalloc_array fails, we should stop using it to avoid NULL pointer
> dereference.
>
> Signed-off-by: Kangjie Lu <kjlu@xxxxxxx>
> ---
Reviewed-by: Haiyang Zhang <haiyangz@xxxxxxxxxxxxx>
Thanks!