Fix displaying of error messages for mising kernel features.

This commit is contained in:
Milan Broz
2013-01-08 14:19:31 +01:00
parent 5f222517f0
commit 929dc47be4
4 changed files with 4 additions and 3 deletions

View File

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