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)
commit061870800efb4e3d1ad4082a2569363629bdfcfc
tree044816c2754a14224bc09fb211550541d5d29cf5
parentdc798b4cc0f2a06e7ad7d522403de274b86a0a6f
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: 73dd3a4839c1 ('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