Revision 886e44c9298a6b428ae046e2fa092ca52e822e6a authored by Jiasheng Jiang on 14 March 2022, 02:01:25 UTC, committed by Jakub Kicinski on 16 March 2022, 04:57:53 UTC
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: 6ae746711263 ("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>
1 parent e9c14b5
History
File Mode Size
Kconfig -rw-r--r-- 130 bytes
Makefile -rw-r--r-- 440 bytes
fc.c -rw-r--r-- 2.5 KB
fddi.c -rw-r--r-- 4.7 KB
garp.c -rw-r--r-- 17.8 KB
hippi.c -rw-r--r-- 4.9 KB
mrp.c -rw-r--r-- 24.8 KB
p8022.c -rw-r--r-- 1.7 KB
psnap.c -rw-r--r-- 3.3 KB
stp.c -rw-r--r-- 2.5 KB

back to top