disp: msm: sde: Adjust max display check

sde_splash_data struct can fit MAX_DSI_DISPLAYS displays and >=
comparison here prevents us from storing the last display when
num_displays == MAX_DSI_DISPLAYS.

Change-Id: I56e62f77a56cdd2d5086e46762614c941ddacd6a
This commit is contained in:
Michael Bestas 2024-06-23 09:07:28 +03:00
parent 73abf253d5
commit 73f2cc1d2e
No known key found for this signature in database
GPG key ID: CC95044519BE6669

View file

@ -4540,7 +4540,7 @@ static int _sde_kms_get_splash_data(struct sde_kms *sde_kms,
+ dp_display_get_num_of_boot_displays();
num_regions = of_property_count_u64_elems(node, "reg") / 2;
if (num_displays >= MAX_DSI_DISPLAYS) {
if (num_displays > MAX_DSI_DISPLAYS) {
SDE_ERROR("invalid number of built in displays %d\n",
num_displays);
return -EINVAL;