Re: [PATCH] drm/vkms: off by one in vkms_gem_fault()

2018-07-16 Thread Rodrigo Siqueira
Hi Dan, Thanks for your patch. I checked and tested it, everything is fine. On 07/14, Dan Carpenter wrote: > The > should be >= so that we don't read one page beyond the end of the > obj->pages[] array. > > Fixes: 559e50fd34d1 ("drm/vkms: Add dumb operations") > Signed-off-by: Dan Carpenter >

[PATCH] drm/vkms: off by one in vkms_gem_fault()

2018-07-14 Thread Dan Carpenter
The > should be >= so that we don't read one page beyond the end of the obj->pages[] array. Fixes: 559e50fd34d1 ("drm/vkms: Add dumb operations") Signed-off-by: Dan Carpenter diff --git a/drivers/gpu/drm/vkms/vkms_gem.c b/drivers/gpu/drm/vkms/vkms_gem.c index c7e38368602b..2cca8c2f260f 100644