]> xenbits.xensource.com Git - qemu-xen.git/commit
tcg: Make the cleanup-on-error path unique
authorSamuel Tardieu <sam@rfc1149.net>
Tue, 19 Dec 2023 18:22:12 +0000 (19:22 +0100)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 23 Jan 2024 03:22:46 +0000 (13:22 +1000)
commit8f8419d3255365121e3596307b98ab3d6dcbdf1a
treed03540ce87fe1cc4062c8ebe58729e3e52fd491e
parent0e5e6219ed75f133a14d6bab39f6966540941864
tcg: Make the cleanup-on-error path unique

By calling `error_setg_errno()` before jumping to the cleanup-on-error
path at the `fail` label, the cleanup path is clearer.

Signed-off-by: Samuel Tardieu <sam@rfc1149.net>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-Id: <20231219182212.455952-3-sam@rfc1149.net>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
tcg/region.c