xfree86: Fix out of array bound access to xf86Entities
Signed-off-by: Łukasz Spintzyk <lukasz.spintzyk@synaptics.com>
This commit is contained in:
parent
0d93bbfa2c
commit
d66b7ec129
|
@ -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;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue