]> git.ipfire.org Git - thirdparty/grub.git/commit
luks2: Propagate error when reading area key fails
authorPatrick Steinhardt <ps@pks.im>
Thu, 16 Apr 2020 17:15:12 +0000 (19:15 +0200)
committerDaniel Kiper <daniel.kiper@oracle.com>
Tue, 21 Apr 2020 20:18:26 +0000 (22:18 +0200)
commitc543d678105037afebb4fdea1fb7e423da3cb3cb
treecbf5f11678a6d5ce9be0b0e851a641fc7b5bf647
parente933feb5786b0c5817b2f6e7f306bf559329186a
luks2: Propagate error when reading area key fails

When decrypting a given keyslot, all error cases except for one set up
an error and return the error code. The only exception is when we try to
read the area key: instead of setting up an error message, we directly
print it via grub_dprintf().

Convert the outlier to use grub_error() to allow more uniform handling
of errors.

Signed-off-by: Patrick Steinhardt <ps@kps.im>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/disk/luks2.c