mirror of
https://github.com/utmapp/qemu.git
synced 2026-12-05 13:52:02 -10:00
Assigning directly to *errp is not valid, as errp may be null, &error_fatal, or &error_abort. The !*errp conditional protects against the latter two, but we then leak @local_err. Fortunately, the qdev core always passes pointer to null, so this is "merely" a latent bug. Use error_propagate() instead. Cc: "Edgar E. Iglesias" <[email protected]> Cc: Alistair Francis <[email protected]> Cc: Jason Wang <[email protected]> Cc: [email protected] Signed-off-by: Eduardo Habkost <[email protected]> Message-Id: <[email protected]> Reviewed-by: Alistair Francis <[email protected]> Reviewed-by: Eric Blake <[email protected]> Reviewed-by: Markus Armbruster <[email protected]> [Commit message clarified] Signed-off-by: Markus Armbruster <[email protected]>