Revert deferred flag for keyslots and temp devices.

It could cause races later, replacing with error device is enough.
This commit is contained in:
Milan Broz
2017-06-24 09:57:22 +02:00
parent ea694a4588
commit 3efa00d59a
3 changed files with 6 additions and 10 deletions

View File

@@ -124,7 +124,7 @@ static int LUKS_endec_template(char *src, size_t srcLength,
out:
if (devfd != -1)
close(devfd);
dm_remove_device(ctx, name, CRYPT_DEACTIVATE_FORCE|CRYPT_DEACTIVATE_DEFERRED);
dm_remove_device(ctx, name, CRYPT_DEACTIVATE_FORCE);
return r;
}