net/mlx5: fix mutex unlock in Tx packet pacing cleanup
authorChengfeng Ye <cyeaa@connect.ust.hk>
Tue, 16 Nov 2021 14:49:23 +0000 (06:49 -0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 16 Nov 2021 16:55:17 +0000 (17:55 +0100)
commit1e580ed4b0ff6afb23043f664ce30fe449e40d71
tree8ba03241f51b8041bf7594ee65339a568d0a1f16
parent0b77e8f3d3643337465e951198497f0c521bfa4c
net/mlx5: fix mutex unlock in Tx packet pacing cleanup

The lock sh->txpp.mutex was not correctly released on one path
of cleanup function return, potentially causing the deadlock.

Fixes: d133f4cdb706 ("net/mlx5: create clock queue for packet pacing")
Cc: stable@dpdk.org
Signed-off-by: Chengfeng Ye <cyeaa@connect.ust.hk>
Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
drivers/net/mlx5/mlx5_txpp.c