diff options
author | Mike Snitzer <snitzer@redhat.com> | 2018-01-06 05:17:20 +0300 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2018-01-17 17:16:15 +0300 |
commit | d5ffebdd797a7c1c89576267640f671db2a668fc (patch) | |
tree | 6796c229b8b8db0014e9d797bfe882c2b26a1a60 /drivers/md/dm-zoned-target.c | |
parent | ae1093be5a0ef997833e200a0dafb9ed0b1ff4fe (diff) | |
download | linux-d5ffebdd797a7c1c89576267640f671db2a668fc.tar.xz |
dm: backfill missing calls to mutex_destroy()
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md/dm-zoned-target.c')
-rw-r--r-- | drivers/md/dm-zoned-target.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/md/dm-zoned-target.c b/drivers/md/dm-zoned-target.c index 6d7bda6f8190..caff02caf083 100644 --- a/drivers/md/dm-zoned-target.c +++ b/drivers/md/dm-zoned-target.c @@ -827,6 +827,7 @@ err_fwq: err_cwq: destroy_workqueue(dmz->chunk_wq); err_bio: + mutex_destroy(&dmz->chunk_lock); bioset_free(dmz->bio_set); err_meta: dmz_dtr_metadata(dmz->metadata); @@ -861,6 +862,8 @@ static void dmz_dtr(struct dm_target *ti) dmz_put_zoned_device(ti); + mutex_destroy(&dmz->chunk_lock); + kfree(dmz); } |