IB/mlx5: Add mutex destroy call to cap_mask_mutex mutex
authorParav Pandit <parav@nvidia.com>
Wed, 13 Jan 2021 12:17:01 +0000 (14:17 +0200)
committerJason Gunthorpe <jgg@nvidia.com>
Wed, 20 Jan 2021 00:14:14 +0000 (20:14 -0400)
commitab40530a2e0a7aca9a5187824c4fb072f3916e85
treede0bcce816538c164f4cf8f0fd331e039672c41f
parent877745b47783869a3149cf691ebff56e2a557f53
IB/mlx5: Add mutex destroy call to cap_mask_mutex mutex

mutex_destroy() call for device's cap_mask_mutex mutex is missing, let's
add it to annotate destruction.

Fixes: e126ba97dba9 ("mlx5: Add driver for Mellanox Connect-IB adapters")
Link: https://lore.kernel.org/r/20210113121703.559778-4-leon@kernel.org
Signed-off-by: Parav Pandit <parav@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/mlx5/main.c