[PATCH 5.4 66/76] IB/mlx5: Fix error unwinding when set_has_smi_cap fails