kernel_optimize_test/drivers/net/hyperv
Yongzhi Liu 541224201e hv_netvsc: Fix potential dereference of NULL pointer
[ Upstream commit eb4c0788964730d12e8dd520bd8f5217ca48321c ]

The return value of netvsc_devinfo_get()
needs to be checked to avoid use of NULL
pointer in case of an allocation failure.

Fixes: 0efeea5fb1 ("hv_netvsc: Add the support of hibernation")
Signed-off-by: Yongzhi Liu <lyz_cs@pku.edu.cn>
Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com>
Link: https://lore.kernel.org/r/1652962188-129281-1-git-send-email-lyz_cs@pku.edu.cn
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-06-09 10:21:12 +02:00
..
hyperv_net.h
Kconfig
Makefile
netvsc_bpf.c
netvsc_drv.c hv_netvsc: Fix potential dereference of NULL pointer 2022-06-09 10:21:12 +02:00
netvsc_trace.c
netvsc_trace.h
netvsc.c
rndis_filter.c