linux/drivers/net/hyperv
Jiasheng Jiang 9b763ceda6 hv_netvsc: Add check for kvmalloc_array
[ Upstream commit 886e44c929 ]

As the potential failure of the kvmalloc_array(),
it should be better to check and restore the 'data'
if fails in order to avoid the dereference of the
NULL pointer.

Fixes: 6ae7467112 ("hv_netvsc: Add per-cpu ethtool stats for netvsc")
Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
Link: https://lore.kernel.org/r/20220314020125.2365084-1-jiasheng@iscas.ac.cn
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-03-23 09:13:28 +01:00
..
hyperv_net.h hv_netvsc: Add validation for untrusted Hyper-V values 2020-09-17 16:21:26 -07:00
Kconfig
Makefile
netvsc_bpf.c bpf, xdp: Remove XDP_QUERY_PROG and XDP_QUERY_PROG_HW XDP commands 2020-07-25 20:37:02 -07:00
netvsc_drv.c hv_netvsc: Add check for kvmalloc_array 2022-03-23 09:13:28 +01:00
netvsc_trace.c
netvsc_trace.h
netvsc.c hv_netvsc: Reset the RSC count if NVSP_STAT_FAIL in netvsc_receive() 2021-02-17 11:02:26 +01:00
rndis_filter.c hv_netvsc: Reset the RSC count if NVSP_STAT_FAIL in netvsc_receive() 2021-02-17 11:02:26 +01:00