xfree86: Fix out of array bound access to xf86Entities
Signed-off-by: Łukasz Spintzyk <lukasz.spintzyk@synaptics.com>
(cherry picked from commit d66b7ec129
)
This commit is contained in:
parent
a4210fe07a
commit
1fc0ca6e68
|
@ -525,8 +525,8 @@ xf86GetDevFromEntity(int entityIndex, int instance)
|
|||
|
||||
for (i = 0; i < xf86Entities[entityIndex]->numInstances; i++)
|
||||
if (xf86Entities[entityIndex]->devices[i]->screen == instance)
|
||||
break;
|
||||
return xf86Entities[entityIndex]->devices[i];
|
||||
return xf86Entities[entityIndex]->devices[i];
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue