]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: off by one in find_irq_source_info()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 4 Jul 2018 09:46:15 +0000 (12:46 +0300)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 5 Jul 2018 21:40:02 +0000 (16:40 -0500)
commitd2ba76a02b5523d93c4cef6a3754483cced0eb8d
tree1a778aa2cccf6e55c50e7957251129777a894cbd
parent32fcb7d6a6a8f05d1acc8a63a35e2df83021c6ea
drm/amd/display: off by one in find_irq_source_info()

The ->info[] array has DAL_IRQ_SOURCES_NUMBER elements so this condition
should be >= instead of > or we could read one element beyond the end of
the array.

Fixes: 2b1146294221 ("drm/amd/dc: Add dc display driver (v2)")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/irq/irq_service.c