diff options
author | Daniel Golle <[email protected]> | 2023-05-09 03:20:06 +0200 |
---|---|---|
committer | David S. Miller <[email protected]> | 2023-05-10 09:23:53 +0100 |
commit | 7c83e28f10830aa5105c25eaabe890e3adac36aa (patch) | |
tree | 0c3674baae71025515eed358e484f99da984b489 /drivers/fpga/fpga-bridge.c | |
parent | 582dbb2cc1a0a7427840f5b1e3c65608e511b061 (diff) |
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 <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-bridge.c')
0 files changed, 0 insertions, 0 deletions