boot: cleanups for efivar_get() and friends
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 6 Dec 2022 04:06:57 +0000 (13:06 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 6 Dec 2022 04:10:28 +0000 (13:10 +0900)
commit9e406b1141da2d93b73428910f2504850631a3ee
treefd8dd831b498f1e054a34e1f7497ca54dff48e65
parent83320324df9cea1ba5d61c74b25a4a20cff56a8e
boot: cleanups for efivar_get() and friends

- rename function arguments for storing results, and support the case
  that they are NULL,
- return earlier on error,
- always validate read size in efivar_get_uint32_le() and efivar_get_uint64_le().
src/boot/efi/util.c
src/boot/efi/util.h