vhost-user: disable chardev handlers on close
commit25f0d2aa5e3d21caa1bc622b21368cc2e383f02c
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 29 Jun 2016 13:15:33 +0000 (29 15:15 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 29 Jun 2016 14:49:40 +0000 (29 16:49 +0200)
tree69448740b06c79110725708b1ccdf2d777ab0b72
parent634d39b4e3e5736b73c55b0fcc113e81246a7057
vhost-user: disable chardev handlers on close

This otherwise causes a use-after-free if network backend cleanup
is performed before character device cleanup.

Cc: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
net/vhost-user.c