summary refs log tree commit diff stats
path: root/hw/intc/ioapic_internal.h
diff options
context:
space:
mode:
authorAvihai Horon <avihaih@nvidia.com>2024-03-28 16:02:52 +0200
committerPeter Xu <peterx@redhat.com>2024-03-31 14:30:03 -0400
commitd0ad271a7613459bd0a3397c8071a4ad06f3f7eb (patch)
tree4023e607cf49e17dfc54c117de54a6c937033571 /hw/intc/ioapic_internal.h
parent30158d885008246f48ee8ef9cdeca220c1bd8586 (diff)
downloadfocaccia-qemu-d0ad271a7613459bd0a3397c8071a4ad06f3f7eb.tar.gz
focaccia-qemu-d0ad271a7613459bd0a3397c8071a4ad06f3f7eb.zip
migration/postcopy: Ensure postcopy_start() sets errp if it fails
There are several places where postcopy_start() fails without setting
errp. This can cause a null pointer de-reference, as in case of error,
the caller of postcopy_start() copies/prints the error set in errp.

Fix it by setting errp in all of postcopy_start() error paths.

Cc: qemu-stable <qemu-stable@nongnu.org>
Fixes: 908927db28ea ("migration: Update error description whenever migration fails")
Signed-off-by: Avihai Horon <avihaih@nvidia.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Link: https://lore.kernel.org/r/20240328140252.16756-3-avihaih@nvidia.com
Signed-off-by: Peter Xu <peterx@redhat.com>
Diffstat (limited to 'hw/intc/ioapic_internal.h')
0 files changed, 0 insertions, 0 deletions