fbdev: omapfb: off by one in omapfb_register_client()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 24 Jul 2018 17:11:28 +0000 (19:11 +0200)
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Tue, 24 Jul 2018 17:11:28 +0000 (19:11 +0200)
commit5ec1ec35b2979b59d0b33381e7c9aac17e159d16
treef638a1a728ea6266bef039631fe8fb465247d003
parent12382ad98ca06afb7ce4dce53aebf115b5f6b948
fbdev: omapfb: off by one in omapfb_register_client()

The omapfb_register_client[] array has OMAPFB_PLANE_NUM elements so the
> should be >= or we are one element beyond the end of the array.

Fixes: 8b08cf2b64f5 ("OMAP: add TI OMAP framebuffer driver")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Imre Deak <imre.deak@solidboot.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
drivers/video/fbdev/omap/omapfb_main.c