OSDN Git Service

libvhost-user: return on error in vu_log_queue_fill()
authorStefan Hajnoczi <stefanha@redhat.com>
Mon, 21 Sep 2020 11:34:20 +0000 (12:34 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 29 Sep 2020 07:06:12 +0000 (03:06 -0400)
commit8138405528c29af2a850cd672a8f8a0b33b7ab40
treed24aa5f7d93dd37ef03aab19f9df6abe00da3069
parentfd40901c82bb0d2946a9523ed8a5a7d0e2867fb6
libvhost-user: return on error in vu_log_queue_fill()

vu_panic() is not guaranteed to exit the program. Return early when
errors are encountered.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-Id: <20200921113420.154378-3-stefanha@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@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