Commit 68f4485c authored by Milan Broz's avatar Milan Broz

Fix deactivation of standalone integrity device.

parent d93ac3c4
......@@ -3264,7 +3264,7 @@ int crypt_deactivate_by_name(struct crypt_device *cd, const char *name, uint32_t
r = -EBUSY;
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);
}
......
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