提交 3cc36f6e 编写于 作者: M Michael S. Tsirkin

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: NMichael S. Tsirkin <mst@redhat.com>
上级 58625edf
......@@ -428,6 +428,7 @@ static inline int virtqueue_add(struct virtqueue *_vq,
if (indirect)
kfree(desc);
END_USE(vq);
return -EIO;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册