linux/drivers/net/hyperv
Jiasheng Jiang ab0ab17618 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:16:42 +01:00
..
hyperv_net.h Networking changes for 5.14. 2021-06-30 15:51:09 -07:00
Kconfig
Makefile
netvsc_bpf.c hv_netvsc: Add (more) validation for untrusted Hyper-V values 2021-01-18 19:47:47 -08:00
netvsc_drv.c hv_netvsc: Add check for kvmalloc_array 2022-03-23 09:16:42 +01:00
netvsc_trace.c
netvsc_trace.h
netvsc.c scsi: storvsc: Use blk_mq_unique_tag() to generate requestIDs 2021-05-14 17:39:32 +00:00
rndis_filter.c Networking changes for 5.14. 2021-06-30 15:51:09 -07:00