> > +if (res->iov) {
> > +cmd->error = VIRTIO_GPU_RESP_ERR_UNSPEC;
> > +return;
> > +}
> > +
>
> I think I would rather return an error in the library for this case.
-ENOLIBRARY ;)
This is the 2d mode code, so virglrenderer isn't involved at all.
Added patch to the queue
2016-12-29 22:57 GMT+08:00 Marc-André Lureau :
> Hi
>
> - Original Message -
> > In the resource attach backing function, everytime it will
> > allocate 'res->iov' thus can leading a memory leak. This
> > patch avoid this.
> >
> > Signed-off-by: Li Qiang
> > ---
> > hw/display/virtio-gpu
Hi
- Original Message -
> In the resource attach backing function, everytime it will
> allocate 'res->iov' thus can leading a memory leak. This
> patch avoid this.
>
> Signed-off-by: Li Qiang
> ---
> hw/display/virtio-gpu.c | 5 +
> 1 file changed, 5 insertions(+)
>
> diff --git a/
In the resource attach backing function, everytime it will
allocate 'res->iov' thus can leading a memory leak. This
patch avoid this.
Signed-off-by: Li Qiang
---
hw/display/virtio-gpu.c | 5 +
1 file changed, 5 insertions(+)
diff --git a/hw/display/virtio-gpu.c b/hw/display/virtio-gpu.c
ind