mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-12 19:30:04 +01:00
Fix displaying of error messages for mising kernel features.
This commit is contained in:
@@ -716,7 +716,7 @@ int TCRYPT_activate(struct crypt_device *cd,
|
||||
break;
|
||||
}
|
||||
|
||||
if (!r && !(dm_flags() & DM_PLAIN64_SUPPORTED)) {
|
||||
if (r < 0 && !(dm_flags() & DM_PLAIN64_SUPPORTED)) {
|
||||
log_err(cd, _("Kernel doesn't support plain64 IV.\n"));
|
||||
r = -ENOTSUP;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user