mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-12 03:10:08 +01:00
Fix deactivation of standalone integrity device.
This commit is contained in:
@@ -3264,7 +3264,7 @@ int crypt_deactivate_by_name(struct crypt_device *cd, const char *name, uint32_t
|
|||||||
r = -EBUSY;
|
r = -EBUSY;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (crypt_get_integrity_tag_size(cd))
|
if (isLUKS2(cd->type) && crypt_get_integrity_tag_size(cd))
|
||||||
namei = device_dm_name(dmd.data_device);
|
namei = device_dm_name(dmd.data_device);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user