Re: [PATCH] virtio-gpu: fix unmap the already mapped items

2020-08-21 Thread Li Zhijian
On 8/21/20 6:07 PM, Gerd Hoffmann wrote: On Fri, Aug 21, 2020 at 04:49:45PM +0800, Li Zhijian wrote: we go here either (!(*iov)[i].iov_base) or (len != l), so we need to consider to unmap the 'i'th item as well when the 'i'th item is not nil Signed-off-by: Li Zhijian --- hw/display/virtio

Re: [PATCH] virtio-gpu: fix unmap the already mapped items

2020-08-21 Thread Gerd Hoffmann
On Fri, Aug 21, 2020 at 04:49:45PM +0800, Li Zhijian wrote: > we go here either (!(*iov)[i].iov_base) or (len != l), so we need to consider > to unmap the 'i'th item as well when the 'i'th item is not nil > > Signed-off-by: Li Zhijian > --- > hw/display/virtio-gpu.c | 2 +- > 1 file changed, 1 i

[PATCH] virtio-gpu: fix unmap the already mapped items

2020-08-21 Thread Li Zhijian
we go here either (!(*iov)[i].iov_base) or (len != l), so we need to consider to unmap the 'i'th item as well when the 'i'th item is not nil Signed-off-by: Li Zhijian --- hw/display/virtio-gpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/display/virtio-gpu.c b/hw/disp