[PATCH v2] net: microchip: sparx5: Fix potential NULL pointer dereference