diff options
| author | Stefan Hajnoczi | 2020-09-21 13:34:19 +0200 |
|---|---|---|
| committer | Michael S. Tsirkin | 2020-09-29 09:06:12 +0200 |
| commit | fd40901c82bb0d2946a9523ed8a5a7d0e2867fb6 (patch) | |
| tree | 91d98b8d66e93839c5e79c0367e8bf6c36508896 /python | |
| parent | hw: virtio-pmem: detach the element fromt the virtqueue when error occurs (diff) | |
| download | qemu-fd40901c82bb0d2946a9523ed8a5a7d0e2867fb6.tar.gz qemu-fd40901c82bb0d2946a9523ed8a5a7d0e2867fb6.tar.xz qemu-fd40901c82bb0d2946a9523ed8a5a7d0e2867fb6.zip | |
libvhost-user: return early on virtqueue errors
vu_panic() is not guaranteed to exit the program. Return early when
errors are encountered.
Note that libvhost-user does not have an "unmap" operation for mapped
descriptors. Therefore it is correct to return without explicit cleanup.
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-Id: <20200921113420.154378-2-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>
Diffstat (limited to 'python')
0 files changed, 0 insertions, 0 deletions
