|
@@ -1064,7 +1064,7 @@ static int table_load(struct dm_ioctl *param, size_t param_size)
|
|
|
|
|
|
r = populate_table(t, param, param_size);
|
|
r = populate_table(t, param, param_size);
|
|
if (r) {
|
|
if (r) {
|
|
- dm_table_put(t);
|
|
|
|
|
|
+ dm_table_destroy(t);
|
|
goto out;
|
|
goto out;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -1072,7 +1072,7 @@ static int table_load(struct dm_ioctl *param, size_t param_size)
|
|
hc = dm_get_mdptr(md);
|
|
hc = dm_get_mdptr(md);
|
|
if (!hc || hc->md != md) {
|
|
if (!hc || hc->md != md) {
|
|
DMWARN("device has been removed from the dev hash table.");
|
|
DMWARN("device has been removed from the dev hash table.");
|
|
- dm_table_put(t);
|
|
|
|
|
|
+ dm_table_destroy(t);
|
|
up_write(&_hash_lock);
|
|
up_write(&_hash_lock);
|
|
r = -ENXIO;
|
|
r = -ENXIO;
|
|
goto out;
|
|
goto out;
|