aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md')
-rw-r--r--drivers/md/dm-ioctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/md/dm-ioctl.c b/drivers/md/dm-ioctl.c
index 977f36612e83..f01096549a93 100644
--- a/drivers/md/dm-ioctl.c
+++ b/drivers/md/dm-ioctl.c
@@ -1064,7 +1064,7 @@ static int table_load(struct dm_ioctl *param, size_t param_size)
1064 1064
1065 r = populate_table(t, param, param_size); 1065 r = populate_table(t, param, param_size);
1066 if (r) { 1066 if (r) {
1067 dm_table_put(t); 1067 dm_table_destroy(t);
1068 goto out; 1068 goto out;
1069 } 1069 }
1070 1070
@@ -1072,7 +1072,7 @@ static int table_load(struct dm_ioctl *param, size_t param_size)
1072 hc = dm_get_mdptr(md); 1072 hc = dm_get_mdptr(md);
1073 if (!hc || hc->md != md) { 1073 if (!hc || hc->md != md) {
1074 DMWARN("device has been removed from the dev hash table."); 1074 DMWARN("device has been removed from the dev hash table.");
1075 dm_table_put(t); 1075 dm_table_destroy(t);
1076 up_write(&_hash_lock); 1076 up_write(&_hash_lock);
1077 r = -ENXIO; 1077 r = -ENXIO;
1078 goto out; 1078 goto out;