Re: [Qemu-devel] [PATCH] virtio-gpu: fix unmap in error path

2019-06-28 Thread Li Qiang
Gerd Hoffmann 于2019年6月28日周五 下午3:24写道: > We land here in case not everything we've asked for could be mapped. > So unmap only the bytes which have actually been mapped. > > Also we didn't access anything, so acces_len can be 0. > > Reported-by: Laszlo Ersek > Signed-off-by: Gerd Hoffmann > It i

Re: [Qemu-devel] [PATCH] virtio-gpu: fix unmap in error path

2019-06-28 Thread Laszlo Ersek
On 06/28/19 09:23, Gerd Hoffmann wrote: > We land here in case not everything we've asked for could be mapped. > So unmap only the bytes which have actually been mapped. > > Also we didn't access anything, so acces_len can be 0. s/acces_len/access_len/ With that: Reviewed-by: Laszlo Ersek Tha

[Qemu-devel] [PATCH] virtio-gpu: fix unmap in error path

2019-06-28 Thread Gerd Hoffmann
We land here in case not everything we've asked for could be mapped. So unmap only the bytes which have actually been mapped. Also we didn't access anything, so acces_len can be 0. Reported-by: Laszlo Ersek Signed-off-by: Gerd Hoffmann --- hw/display/virtio-gpu.c | 4 ++-- 1 file changed, 2 in