diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2020-07-06 22:10:34 +0400 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2020-07-13 11:59:47 +0400 |
commit | 14a7a203063694ff932f3371ed93e97987dcafc0 (patch) | |
tree | be4b97fbf145eb9cb68ac65297d11ef30a47a86f /block/parallels.h | |
parent | 2b61bb716cd45ffe10fc92512b6134084c0ffcde (diff) |
chardev: don't abort on attempt to add duplicated chardev
This is a regression from commit d2623129a7d ("qom: Drop parameter @errp
of object_property_add() & friends").
(qemu) chardev-add id=null,backend=null
(qemu) chardev-add id=null,backend=null
Unexpected error in object_property_try_add() at /home/elmarco/src/qemu/qom/object.c:1166:
attempt to add duplicate property 'null' to object (type 'container')
That case is currently not covered in the test suite, but will be with
the queued patch "char: fix use-after-free with dup chardev &
reconnect".
Fixes: d2623129a7dec1d3041ad1221dda1ca49c667532
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'block/parallels.h')
0 files changed, 0 insertions, 0 deletions