]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Off by one in dm_dmub_outbox1_low_irq()
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 16 May 2022 07:05:48 +0000 (10:05 +0300)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 26 May 2022 18:56:33 +0000 (14:56 -0400)
commit06a43e4a7aa324b58379515ac513108c879e82ab
treed48ef923649fe006d60a9feb4c4c5b3b468b6e12
parent886ccbdab7d71cffd5a3c504bc2f99d945694a99
drm/amdgpu: Off by one in dm_dmub_outbox1_low_irq()

The > ARRAY_SIZE() should be >= ARRAY_SIZE() to prevent an out of bounds
access.

Fixes: d68e09a05f19 ("drm/amd/display: Support for DMUB HPD interrupt handling")
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c