| It will cause null-ptr-deref if platform_get_resource() returns NULL,
we need check the return value.
Fixes:  | ||
|---|---|---|
| .. | ||
| Kconfig | ||
| Makefile | ||
| sparx5_calendar.c | ||
| sparx5_ethtool.c | ||
| sparx5_mactable.c | ||
| sparx5_main_regs.h | ||
| sparx5_main.c | ||
| sparx5_main.h | ||
| sparx5_netdev.c | ||
| sparx5_packet.c | ||
| sparx5_phylink.c | ||
| sparx5_port.c | ||
| sparx5_port.h | ||
| sparx5_switchdev.c | ||
| sparx5_vlan.c | ||