diff options
author | Moshe Shemesh <moshe@mellanox.com> | 2019-12-27 07:01:53 +0200 |
---|---|---|
committer | Saeed Mahameed <saeedm@mellanox.com> | 2020-05-22 17:28:34 -0700 |
commit | 17d00e839d3b592da9659c1977d45f85b77f986a (patch) | |
tree | 6df648de812dc786f0e89dffe5c4c86198e31fae /drivers/dma/qcom/hidma.h | |
parent | 5a730153984dd13f82ffae93d7170d76eba204e9 (diff) | |
download | linux-17d00e839d3b592da9659c1977d45f85b77f986a.tar.bz2 |
net/mlx5: Add command entry handling completion
When FW response to commands is very slow and all command entries in
use are waiting for completion we can have a race where commands can get
timeout before they get out of the queue and handled. Timeout
completion on uninitialized command will cause releasing command's
buffers before accessing it for initialization and then we will get NULL
pointer exception while trying access it. It may also cause releasing
buffers of another command since we may have timeout completion before
even allocating entry index for this command.
Add entry handling completion to avoid this race.
Fixes: e126ba97dba9 ("mlx5: Add driver for Mellanox Connect-IB adapters")
Signed-off-by: Moshe Shemesh <moshe@mellanox.com>
Signed-off-by: Eran Ben Elisha <eranbe@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'drivers/dma/qcom/hidma.h')
0 files changed, 0 insertions, 0 deletions