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:
parent
73abf253d5
commit
73f2cc1d2e
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue