[PATCH 5.17 0824/1126] net: sparx5: switchdev: fix possible NULL pointer dereference