Fix a bug in keyring keyslot context.

It always returned zero upon successful keyslot unlock
instead expected unlocked keyslot id.
This commit is contained in:
Ondrej Kozina
2024-09-11 15:58:11 +02:00
committed by Milan Broz
parent e48c74b77f
commit 41c72eaa65
2 changed files with 25 additions and 3 deletions

View File

@@ -354,7 +354,7 @@ static int get_luks2_key_by_keyring(struct crypt_device *cd,
if (r < 0)
kc->error = r;
return 0;
return r;
}
static int get_luks2_volume_key_by_keyring(struct crypt_device *cd,