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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 4 Mar 2021 10:37:58 +0000 (11:37 +0100)
commit57ae53cc5a799dda43fd256c4c9f6846eee2fe6e
tree6f485f2236a863e95e43dbfb30638898e3f5a411
parenta62529e888faea3cf2ecfea678080bcd301f4e73
IB/mlx5: Add mutex destroy call to cap_mask_mutex mutex

[ Upstream commit ab40530a2e0a7aca9a5187824c4fb072f3916e85 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/infiniband/hw/mlx5/main.c