]> git.proxmox.com Git - mirror_qemu.git/commit
chardev: unref if underlying chardev has no parent
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Wed, 11 Jul 2018 18:00:19 +0000 (20:00 +0200)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Wed, 3 Oct 2018 10:45:04 +0000 (14:45 +0400)
commit425d8a4e70f3946ac649925c4e3211906371ca6d
tree13010b144fa54cc4a9eeb67d9420ff3ef89ecfdb
parent43182856c5a576f5db5f40768972a19f187a789e
chardev: unref if underlying chardev has no parent

It's possible to write code creating a chardev backend that is not
registered. When it is not user-created, it makes sense to keep it
hidden. Let the associated frontend destroy it also in this case.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
chardev/char-fe.c