drm/komeda: Off by one in komeda_fb_get_pixel_addr()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 23 Jan 2019 09:37:55 +0000 (12:37 +0300)
committerLiviu Dudau <Liviu.Dudau@arm.com>
Wed, 30 Jan 2019 13:46:17 +0000 (13:46 +0000)
commitdcc9d76b6d834d06a317e27fa8242d7e009135ac
tree6a8b383cfc79cb060726a59abb48e6f577daac7a
parent874cf192964e05dc6f8103aa8bbcd090a7541312
drm/komeda: Off by one in komeda_fb_get_pixel_addr()

The > should be >= to avoid an off by one bug.

Fixes: c46c24bb6b11 ("drm/komeda: Add komeda_framebuffer")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: James Qian Wang (Arm Technology China) <james.qian.wang@arm.com>
Signed-off-by: Liviu Dudau <liviu.dudau@arm.com>
drivers/gpu/drm/arm/display/komeda/komeda_framebuffer.c