From: Markus Armbruster <arm...@redhat.com> Commit 2c5f488 introduced qapi-based character device initialization as a new code path in qemu_chr_new_from_opts(). Unfortunately, it failed to store parameter opts in the new chardev. Therefore, qemu_chr_delete() doesn't delete it. Even though the device is gone, its options linger, and any attempt to create another one with the same ID fails.
Cc: qemu-sta...@nongnu.org Signed-off-by: Markus Armbruster <arm...@redhat.com> Reviewed-by: Gerd Hoffmann <kra...@redhat.com> Message-id: 1372339512-28149-1-git-send-email-arm...@redhat.com Signed-off-by: Anthony Liguori <aligu...@us.ibm.com> (cherry picked from commit 2ea3e2c1e85097c45a882dbc1fbba4a7fdb3ff1c) Signed-off-by: Michael Roth <mdr...@linux.vnet.ibm.com> --- qemu-char.c | 1 + 1 file changed, 1 insertion(+) diff --git a/qemu-char.c b/qemu-char.c index efe706d..b8ffcba 100644 --- a/qemu-char.c +++ b/qemu-char.c @@ -3228,6 +3228,7 @@ CharDriverState *qemu_chr_new_from_opts(QemuOpts *opts, } chr = qemu_chr_find(id); + chr->opts = opts; qapi_out: qapi_free_ChardevBackend(backend); -- 1.7.9.5