drm/msm/sde: fix potential array index out of bounds
The num_encoders may exceed the max_encoders, so add one safe condition
to avoid this case.
Change-Id: I38454678f18cb26616ff82eb6f418f2fc0d22fa5
Signed-off-by:
Shilun Wan <swan@codeaurora.org>
Loading
Please register or sign in to comment