From: Michael S. Tsirkin Date: Wed, 3 Aug 2016 04:18:51 +0000 (+0300) Subject: virtio: fix error handling for debug builds X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3cc36f6e34bd2d92d23be7b598ba5e639c47b01a;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git virtio: fix error handling for debug builds On error, virtqueue_add calls START_USE but not END_USE. Thankfully that's normally empty anyway, but might not be when debugging. Fix it up. Signed-off-by: Michael S. Tsirkin --- diff --git a/drivers/virtio/virtio_ring.c b/drivers/virtio/virtio_ring.c index 5ed228ddadba..e383ecdaca59 100644 --- a/drivers/virtio/virtio_ring.c +++ b/drivers/virtio/virtio_ring.c @@ -428,6 +428,7 @@ unmap_release: if (indirect) kfree(desc); + END_USE(vq); return -EIO; }