]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/uefi: fix error handling in uefi_vars_json_save
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 19 Mar 2025 14:11:54 +0000 (15:11 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 21 Mar 2025 11:00:38 +0000 (12:00 +0100)
commitae24cf139ba681f8ce3dc809f3f1119b16c73043
tree7d682ab8e1eb34dae4b6272469c0305137a721d8
parent560429fd746adf04b57237c3c4a38ecfd906c592
hw/uefi: fix error handling in uefi_vars_json_save

Catch lseek errors.  Return on errors.
Use autoptr for the GString to simplify cleanup.

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Message-ID: <20250319141159.1461621-3-kraxel@redhat.com>
hw/uefi/var-service-json.c