mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-25 18:50:51 +03:00
o Fix crash that Patrick reported
This commit is contained in:
parent
6bf8d9e207
commit
c142492e91
@ -878,8 +878,9 @@ int dm_deactivate(struct mapped_device *md)
|
||||
return -EPERM;
|
||||
}
|
||||
|
||||
close_devices(&md->map->devices);
|
||||
md->map = 0;
|
||||
if (md->map)
|
||||
close_devices(&md->map->devices);
|
||||
md->map = NULL;
|
||||
clear_bit(DM_ACTIVE, &md->state);
|
||||
wu;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user