Re: [PATCH v2 2/2] util/grub-protect: Correct uninit 'err' Variable

2025-06-17 Thread sudhakar
On 2025-06-18 07:28, Andrew Hamilton wrote: In function protect_tpm2_export_tpm2key, the 'err' variable is uninitialized in the normal (error free) path, so ensure this defaults to GRUB_ERR_NONE. This causes the GRUB build to fail with clang (observed with clang-14). Fixes: 5934bf51c (util/grub

[PATCH v2 2/2] util/grub-protect: Correct uninit 'err' Variable

2025-06-17 Thread Andrew Hamilton
In function protect_tpm2_export_tpm2key, the 'err' variable is uninitialized in the normal (error free) path, so ensure this defaults to GRUB_ERR_NONE. This causes the GRUB build to fail with clang (observed with clang-14). Fixes: 5934bf51c (util/grub-protect: Support NV index mode) Signed-off-b