[PATCH 5.15 673/913] net: sparx5: switchdev: fix possible NULL pointer dereference