diff options
author | Shay Drory <shayd@nvidia.com> | 2022-06-27 16:05:31 +0300 |
---|---|---|
committer | Saeed Mahameed <saeedm@nvidia.com> | 2022-07-28 23:44:41 +0300 |
commit | 42b4f7f66a43cdb9216e76e595c8a9af154806da (patch) | |
tree | d1d5f091a9864d6cc4b61240870cda454562c59f /net/rds | |
parent | 62d2664351ef37da34f6f3a3fd8ab34257d6fe30 (diff) | |
download | linux-42b4f7f66a43cdb9216e76e595c8a9af154806da.tar.xz |
net/mlx5: Fix driver use of uninitialized timeout
Currently, driver is setting default values to all timeouts during
function setup. The offending commit is using a timeout before
function setup, meaning: the timeout is 0 (or garbage), since no
value have been set.
This may result in failure to probe the driver:
mlx5_function_setup:1034:(pid 69850): Firmware over 4294967296 MS in pre-initializing state, aborting
probe_one:1591:(pid 69850): mlx5_init_one failed with error code -16
Hence, set default values to timeouts during tout_init()
Fixes: 37ca95e62ee2 ("net/mlx5: Increase FW pre-init timeout for health recovery")
Signed-off-by: Shay Drory <shayd@nvidia.com>
Reviewed-by: Moshe Shemesh <moshe@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'net/rds')
0 files changed, 0 insertions, 0 deletions