diff options
author | Jiawen Wu <jiawenwu@trustnetic.com> | 2023-11-17 13:11:08 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-11-19 22:43:54 +0300 |
commit | 8ba2c459668cfe2aaacc5ebcd35b4b9ef8643013 (patch) | |
tree | c272114d8a11fe9ac9495c91ebd745e47e3ad16a /drivers/net/wireguard/device.c | |
parent | 76df934c6d5f5c93ba7a0112b1818620ddc10b19 (diff) | |
download | linux-8ba2c459668cfe2aaacc5ebcd35b4b9ef8643013.tar.xz |
net: wangxun: fix kernel panic due to null pointer
When the device uses a custom subsystem vendor ID, the function
wx_sw_init() returns before the memory of 'wx->mac_table' is allocated.
The null pointer will causes the kernel panic.
Fixes: 79625f45ca73 ("net: wangxun: Move MAC address handling to libwx")
Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wireguard/device.c')
0 files changed, 0 insertions, 0 deletions