mirror of
https://github.com/mii443/qemu.git
synced 2025-08-23 15:48:20 +00:00
qemu-char: Move incrementing of avail_connections to qdev-properties-system
The decrement of avail_connections is done in qdev-properties-system move the increment there too for proper balancing of the calls. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Message-id: 1364292483-16564-8-git-send-email-hdegoede@redhat.com Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
committed by
Anthony Liguori
parent
574b711a92
commit
85d91e3295
@ -224,8 +224,6 @@ void qemu_chr_add_handlers(CharDriverState *s,
|
||||
int fe_open;
|
||||
|
||||
if (!opaque && !fd_can_read && !fd_read && !fd_event) {
|
||||
/* chr driver being released. */
|
||||
++s->avail_connections;
|
||||
fe_open = 0;
|
||||
} else {
|
||||
fe_open = 1;
|
||||
|
Reference in New Issue
Block a user