1
0
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:
steve 2001-10-17 15:03:00 +00:00
parent 6bf8d9e207
commit c142492e91

View File

@ -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;