mlx5: Do not try to enable fwdumps if scan space did not responded.
Sponsored by: Mellanox Technologies MFC after: 1 week
This commit is contained in:
parent
9a4af029b0
commit
c47b170b02
@ -111,6 +111,10 @@ mlx5_fwdump_prep(struct mlx5_core_dev *mdev)
|
||||
sz++;
|
||||
addr = next_addr;
|
||||
}
|
||||
if (sz == 1) {
|
||||
mlx5_core_warn(mdev, "no output from scan space\n");
|
||||
goto unlock_vsc;
|
||||
}
|
||||
mdev->dump_rege = malloc(sz * sizeof(struct mlx5_crspace_regmap),
|
||||
M_MLX5_DUMP, M_WAITOK | M_ZERO);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user