diff options
author | Daniel Golle <daniel@makrotopia.org> | 2023-05-09 03:20:06 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-05-10 10:23:53 +0200 |
commit | 7c83e28f10830aa5105c25eaabe890e3adac36aa (patch) | |
tree | 0c3674baae71025515eed358e484f99da984b489 /include/net/bonding.h | |
parent | net: phy: bcm7xx: Correct read from expansion register (diff) | |
download | linux-7c83e28f10830aa5105c25eaabe890e3adac36aa.tar.xz linux-7c83e28f10830aa5105c25eaabe890e3adac36aa.zip |
net: ethernet: mtk_eth_soc: fix NULL pointer dereference
Check for NULL pointer to avoid kernel crashing in case of missing WO
firmware in case only a single WEDv2 device has been initialized, e.g. on
MT7981 which can connect just one wireless frontend.
Fixes: 86ce0d09e424 ("net: ethernet: mtk_eth_soc: use WO firmware for MT7981")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/bonding.h')
0 files changed, 0 insertions, 0 deletions