mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-20 18:40:02 +01:00
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
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Reference in a new issue