]> git.ipfire.org Git - thirdparty/qemu.git/commit
tmp_emulator: improve and fix use of errp
authorVladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Tue, 28 Oct 2025 13:07:38 +0000 (16:07 +0300)
committerPeter Xu <peterx@redhat.com>
Mon, 3 Nov 2025 21:04:10 +0000 (16:04 -0500)
commit3469a56fa3dc98549d87535a80bb4bddfed44936
treeb964915019b85cfd5012a7d4b5afa63c7e0ecbd4
parentd4b3a3cc55845685c16d4313ff345c392262d940
tmp_emulator: improve and fix use of errp

tpm_emulator_post_load() and tpm_emulator_set_state_blobs() has
error paths, where they return negative value, but do not set
errp.

To fix that, we also have to convert several other functions to
set errp instead of error_reporting.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Link: https://lore.kernel.org/r/20251028130738.29037-3-vsementsov@yandex-team.ru
Signed-off-by: Peter Xu <peterx@redhat.com>
backends/tpm/tpm_emulator.c