mirror of
https://github.com/qemu/qemu.git
synced 2026-04-05 22:00:58 +00:00
migrate_add_blocker() can fail (e.g. if migration is already in progress), in which case it returns a negative value and populates its errp argument with the reason. The previous code ignored the return value. Pass &error_fatal so that on failure QEMU exits cleanly with an informative error message rather than continuing in an inconsistent state. Resolves: CID 1645470 Signed-off-by: Trieu Huynh <vikingtc4@gmail.com> Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Tested-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Link: https://lore.kernel.org/qemu-devel/20260317134733.126584-1-vikingtc4@gmail.com Signed-off-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>