Skip to content
Commit aaf2e65c authored by Moshe Shemesh's avatar Moshe Shemesh Committed by Saeed Mahameed
Browse files

net/mlx5: Fix handling of entry refcount when command is not issued to FW



In case command interface is down, or the command is not allowed, driver
did not increment the entry refcount, but might have decrement as part
of forced completion handling.

Fix that by always increment and decrement the refcount to make it
symmetric for all flows.

Fixes: 50b2412b ("net/mlx5: Avoid possible free of command entry while timeout comp handler")
Signed-off-by: default avatarEran Ben Elisha <eranbe@nvidia.com>
Signed-off-by: default avatarMoshe Shemesh <moshe@nvidia.com>
Reported-by: default avatarJack Wang <jinpu.wang@ionos.com>
Tested-by: default avatarJack Wang <jinpu.wang@ionos.com>
Signed-off-by: default avatarSaeed Mahameed <saeedm@nvidia.com>
parent 870c2481
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment