]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: dc_get_vmid_use_vector() crashes when get called
authorPeikang Zhang <peikang.zhang@amd.com>
Mon, 20 Jan 2020 14:25:15 +0000 (09:25 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 6 Feb 2020 20:04:37 +0000 (15:04 -0500)
commit0dd1287289c0087c49447be1f1c15a323286a78e
tree91d3d33bd8c00e214d7973ccc4fc7a30b365d4a4
parentae5a66a41d2d1d1b1b80ecbaec61efb2b71092e1
drm/amd/display: dc_get_vmid_use_vector() crashes when get called

[Why]
int i can go out of boundary which will cause crash

[How]
Fixed the maximum value of i to avoid i going out of boundary

Signed-off-by: Peikang Zhang <peikang.zhang@amd.com>
Reviewed-by: Jun Lei <Jun.Lei@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_vm_helper.c