Commit e0738c98 authored by Kevin Corry's avatar Kevin Corry Committed by Linus Torvalds

[PATCH] dm: Drop extra table ref-count

When multiple load ioctls are issued the reference count on older
'new_tables' wasn't being dropped.  [Christophe Saout]
parent 1edb9b6a
...@@ -817,6 +817,8 @@ static int table_load(struct dm_ioctl *param, size_t param_size) ...@@ -817,6 +817,8 @@ static int table_load(struct dm_ioctl *param, size_t param_size)
return -ENXIO; return -ENXIO;
} }
if (hc->new_map)
dm_table_put(hc->new_map);
hc->new_map = t; hc->new_map = t;
param->flags |= DM_INACTIVE_PRESENT_FLAG; param->flags |= DM_INACTIVE_PRESENT_FLAG;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment