summary refs log tree commit diff stats
path: root/scripts/qapi-types.py
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 /scripts/qapi-types.py
parent71c265816dd2772f89ebb377381c836dfca09d70 (diff)
downloadfocaccia-qemu-9cf70c52253ccadc137d40eb0de2c0f25a127334.tar.gz
focaccia-qemu-9cf70c52253ccadc137d40eb0de2c0f25a127334.zip
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 'scripts/qapi-types.py')
0 files changed, 0 insertions, 0 deletions