libvhost-user: quit when no more data received
commit2566378d6d13bf4d28c7770bdbda5f7682594bbe
authorJens Freimann <jfreiman@redhat.com>
Tue, 8 Aug 2017 20:38:58 +0000 (8 22:38 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 9 Aug 2017 01:22:13 +0000 (9 04:22 +0300)
tree97be708f37cdc2d780491bac558b315324bb951f
parent0f8c289ad539feb5135c545bea947b310a893f4b
libvhost-user: quit when no more data received

End processing of messages when VHOST_USER_NONE
is received.

Without this we run into a vubr_panic() call and get
"PANIC: Unhandled request: 0"

Signed-off-by: Jens Freimann <jfreiman@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
contrib/libvhost-user/libvhost-user.c