search for: 867c7ebd3f10

Displaying 2 results from an estimated 2 matches for "867c7ebd3f10".

2020 Mar 06
1
[PATCH] virtio_ring: Fix mem leak with vring_new_virtqueue()
...m> >>>> --- >>>> ?? drivers/virtio/virtio_ring.c | 4 ++-- >>>> ?? 1 file changed, 2 insertions(+), 2 deletions(-) >>>> >>>> diff --git a/drivers/virtio/virtio_ring.c >>>> b/drivers/virtio/virtio_ring.c >>>> index 867c7ebd3f10..58b96baa8d48 100644 >>>> --- a/drivers/virtio/virtio_ring.c >>>> +++ b/drivers/virtio/virtio_ring.c >>>> @@ -2203,10 +2203,10 @@ void vring_del_virtqueue(struct virtqueue *_vq) >>>> ??????????????????????? vq->split.queue_size_in_bytes, >>&g...
2019 Nov 14
0
[PATCH 1/1] virtio_ring: fix return code on DMA mapping fails
...virtio-blk and virtio-net (thanks!). We should look into how other virtio devices behave when DMA mapping fails. --- drivers/virtio/virtio_ring.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/virtio/virtio_ring.c b/drivers/virtio/virtio_ring.c index a8041e451e9e..867c7ebd3f10 100644 --- a/drivers/virtio/virtio_ring.c +++ b/drivers/virtio/virtio_ring.c @@ -583,7 +583,7 @@ static inline int virtqueue_add_split(struct virtqueue *_vq, kfree(desc); END_USE(vq); - return -EIO; + return -ENOMEM; } static bool virtqueue_kick_prepare_split(struct virtqueue *_vq) @@ -1...