summaryrefslogtreecommitdiff
path: root/drivers/net/wireguard/device.c
diff options
context:
space:
mode:
authorJiawen Wu <jiawenwu@trustnetic.com>2023-11-17 18:11:08 +0800
committerDavid S. Miller <davem@davemloft.net>2023-11-19 19:43:54 +0000
commit8ba2c459668cfe2aaacc5ebcd35b4b9ef8643013 (patch)
treec272114d8a11fe9ac9495c91ebd745e47e3ad16a /drivers/net/wireguard/device.c
parent76df934c6d5f5c93ba7a0112b1818620ddc10b19 (diff)
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