drm/amd/display: Don't ASSERT when total_planes == AMDGPU_MAX_PLANES
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Tue, 5 Mar 2019 17:24:08 +0000 (12:24 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 19 Mar 2019 20:36:48 +0000 (15:36 -0500)
commitb5dcec9c90fdb3287cd465ee8d3fb00d33e1133d
tree3bbb08db32e454d2b349525fe94f1cfd935676c9
parentc33f53341790a130e68aafc70cc93916b061a709
drm/amd/display: Don't ASSERT when total_planes == AMDGPU_MAX_PLANES

[Why]
Can happen on ASICs with 6 planes, but this isn't a bug since we haven't
written outside the array.

[How]
Use <= instead of <.

Cc: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Reported-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Tested-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c