qemu-char: make tcp_chr_disconnect() reentrant-safe
commit342f7a9d056d6863475abf35bd4c06bcf1185462
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 23 Feb 2016 18:10:53 +0000 (23 19:10 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 11 Mar 2016 14:59:12 +0000 (11 16:59 +0200)
tree364c26b24c436b5475ed2a074bc7a165a9ae2c62
parent6167ebbd914229f4ee745576241eaa020cc98239
qemu-char: make tcp_chr_disconnect() reentrant-safe

During CHR_EVENT_CLOSED, the function could be reentered, make this
case safe.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
qemu-char.c