[PATCH net] net: ethernet: mtk_eth_soc: fix NULL pointer dereference
Simon Horman
simon.horman at corigine.com
Tue May 9 01:14:46 PDT 2023
On Tue, May 09, 2023 at 03:20:06AM +0200, Daniel Golle wrote:
> 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 at makrotopia.org>
Reviewed-by: Simon Horman <simon.horman at corigine.com>
More information about the Linux-mediatek
mailing list