[PATCH 5.16 0741/1017] net: sparx5: switchdev: fix possible NULL pointer dereference