aboutsummaryrefslogtreecommitdiff
path: root/qobject/qnull.c
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2016-03-15 19:34:31 +0100
committerMarkus Armbruster <armbru@redhat.com>2016-03-21 21:29:00 +0100
commit9cf70c52253ccadc137d40eb0de2c0f25a127334 (patch)
tree4645cecc9e6736b1800202436d4497b1f4d8f3d5 /qobject/qnull.c
parent71c265816dd2772f89ebb377381c836dfca09d70 (diff)
downloadqemu-9cf70c52253ccadc137d40eb0de2c0f25a127334.zip
qemu-9cf70c52253ccadc137d40eb0de2c0f25a127334.tar.gz
qemu-9cf70c52253ccadc137d40eb0de2c0f25a127334.tar.bz2
ivshmem: Fix harmless misuse of Error
We reuse errp after passing it host_memory_backend_get_memory(). If both host_memory_backend_get_memory() and the reuse set an error, the reuse will fail the assertion in error_setv(). Fortunately, host_memory_backend_get_memory() can't fail. Pass it &error_abort to make our assumption explicit, and to get the assertion failure in the right place should it become invalid. Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <1458066895-20632-17-git-send-email-armbru@redhat.com>
Diffstat (limited to 'qobject/qnull.c')
0 files changed, 0 insertions, 0 deletions