]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Fix command completion after timeout access invalid structure
authorMoshe Shemesh <moshe@mellanox.com>
Thu, 6 Jul 2017 12:48:40 +0000 (15:48 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 27 Jul 2017 13:40:16 +0000 (16:40 +0300)
commit4cf1bb4a43af84aae655056563eb84ba9ccfda27
tree044816c2754a14224bc09fb211550541d5d29cf5
parentc0a1982b7aa804a09731ce92ec1fb394e937df13
net/mlx5: Fix command completion after timeout access invalid structure

Completion on timeout should not free the driver command entry structure
as it will need to access it again once real completion event from FW
will occur.

Fixes: c34ffd2378aa ('net/mlx5: Avoid using pending command interface slots')
Signed-off-by: Moshe Shemesh <moshe@mellanox.com>
Cc: kernel-team@fb.com
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/cmd.c