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

2020-08-31 Thread Gerd Hoffmann
On Thu, Aug 27, 2020 at 11:58:55AM +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 > > CC: Li Qiang > Signed-off-by: Li Zhijian Added to vga queue. thanks, Gerd

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

2020-08-26 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 CC: Li Qiang Signed-off-by: Li Zhijian --- v2: address Gerd's comments v3: leave (*iov)[i].iov_len as the real mapped len (Li Qiang) ---