Displaying 5 results from an estimated 5 matches for "err_buflen".
Did you mean:
err_buffer
2023 May 26
1
[PATCH] virtio_ring: validate used buffer length
...ng_split,
vring_split->vring_align = vring_align;
vring_split->may_reduce_num = may_reduce_num;
+ if (vring_needs_used_validation(vdev)) {
+ vring_split->buflen =
+ kmalloc_array(num, sizeof(*vring_split->buflen),
+ GFP_KERNEL);
+ if (!vring_split->buflen)
+ goto err_buflen;
+ }
+
return 0;
+
+err_buflen:
+ vring_free_split(vring_split, vdev, dma_dev);
+ return -ENOMEM;
}
static struct virtqueue *vring_create_virtqueue_split(
@@ -1297,6 +1344,7 @@ static int virtqueue_add_indirect_packed(struct vring_virtqueue *vq,
unsigned int i, n, err_idx;
u16 head, id;...
2023 May 31
1
[PATCH] virtio_ring: validate used buffer length
...; + kmalloc_array(num, sizeof(*vring_split->buflen),
> > > > > > > + GFP_KERNEL);
> > > > > > > + if (!vring_split->buflen)
> > > > > > > + goto err_buflen;
> > > > > > > + }
> > > > > > > +
> > > > > > > return 0;
> > > > > > > +
> > > > > > > +err_buflen:
> > > > > > > + vring_free_split(vring_split, vdev, dma_d...
2023 May 31
1
[PATCH] virtio_ring: validate used buffer length
...kmalloc_array(num, sizeof(*vring_split->buflen),
> > > > > > > > + GFP_KERNEL);
> > > > > > > > + if (!vring_split->buflen)
> > > > > > > > + goto err_buflen;
> > > > > > > > + }
> > > > > > > > +
> > > > > > > > return 0;
> > > > > > > > +
> > > > > > > > +err_buflen:
> > > > > > > > + vring_free_...
2023 Jun 01
1
[PATCH] virtio_ring: validate used buffer length
...kmalloc_array(num, sizeof(*vring_split->buflen),
> > > > > > > > + GFP_KERNEL);
> > > > > > > > + if (!vring_split->buflen)
> > > > > > > > + goto err_buflen;
> > > > > > > > + }
> > > > > > > > +
> > > > > > > > return 0;
> > > > > > > > +
> > > > > > > > +err_buflen:
> > > > > > > > + vring_free_...
2023 Jun 01
1
[PATCH] virtio_ring: validate used buffer length
...c_array(num, sizeof(*vring_split->buflen),
> > > > > > > > > + GFP_KERNEL);
> > > > > > > > > + if (!vring_split->buflen)
> > > > > > > > > + goto err_buflen;
> > > > > > > > > + }
> > > > > > > > > +
> > > > > > > > > return 0;
> > > > > > > > > +
> > > > > > > > > +err_buflen:
> > > > > > &g...