Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1455627 > unrolled thread

[PATCH] virtio: fix error handling for debug builds

Started by"Michael S. Tsirkin" <mst@redhat.com>
First post2016-08-03 06:30 +0200
Last post2016-08-03 06:30 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] virtio: fix error handling for debug builds "Michael S. Tsirkin" <mst@redhat.com> - 2016-08-03 06:30 +0200

#1455627 — [PATCH] virtio: fix error handling for debug builds

From"Michael S. Tsirkin" <mst@redhat.com>
Date2016-08-03 06:30 +0200
Subject[PATCH] virtio: fix error handling for debug builds
Message-ID<s1VYB-5Um-13@gated-at.bofh.it>
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 <mst@redhat.com>
---
 drivers/virtio/virtio_ring.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/virtio/virtio_ring.c b/drivers/virtio/virtio_ring.c
index 5ed228d..e383ecd 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;
 }
 
-- 
MST

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web