mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
xfree86: Fix out of array bound access to xf86Entities
Signed-off-by: Łukasz Spintzyk <lukasz.spintzyk@synaptics.com>
This commit is contained in:
@@ -528,8 +528,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;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user