From d5ffebdd797a7c1c89576267640f671db2a668fc Mon Sep 17 00:00:00 2001 From: Mike Snitzer Date: Fri, 5 Jan 2018 21:17:20 -0500 Subject: dm: backfill missing calls to mutex_destroy() Signed-off-by: Mike Snitzer --- drivers/md/dm.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'drivers/md/dm.c') diff --git a/drivers/md/dm.c b/drivers/md/dm.c index 73d7f316ac1d..67bf11610e4d 100644 --- a/drivers/md/dm.c +++ b/drivers/md/dm.c @@ -1789,6 +1789,10 @@ static void cleanup_mapped_device(struct mapped_device *md) md->bdev = NULL; } + mutex_destroy(&md->suspend_lock); + mutex_destroy(&md->type_lock); + mutex_destroy(&md->table_devices_lock); + dm_mq_cleanup_mapped_device(md); } -- cgit v1.2.3