]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Fix command entry leak in Internal Error State
authorMoshe Shemesh <moshe@mellanox.com>
Sun, 23 Feb 2020 01:27:41 +0000 (03:27 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 30 Apr 2020 16:20:33 +0000 (09:20 -0700)
commit6f247e23cf7a759952a60e6ca627b102e4bc08a6
tree1fa9a89fc76652a6b5dd984bc03668cf370af0c7
parent14afa5460313b732723e1968e51417c64e093f60
net/mlx5: Fix command entry leak in Internal Error State

Processing commands by cmd_work_handler() while already in Internal
Error State will result in entry leak, since the handler process force
completion without doorbell. Forced completion doesn't release the entry
and event completion will never arrive, so entry should be released.

Fixes: b030b9ffaff2 ("net/mlx5: Avoid using pending command interface slots")
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>
drivers/net/ethernet/mellanox/mlx5/core/cmd.c