mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-01 10:42:11 +00:00
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 <mst@redhat.com>
This commit is contained in:
parent
58625edf9e
commit
3cc36f6e34
@ -428,6 +428,7 @@ static inline int virtqueue_add(struct virtqueue *_vq,
|
||||
if (indirect)
|
||||
kfree(desc);
|
||||
|
||||
END_USE(vq);
|
||||
return -EIO;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user