Commit 1fc0ca6e authored by Łukasz Spintzyk's avatar Łukasz Spintzyk
Browse files

xfree86: Fix out of array bound access to xf86Entities


Signed-off-by: Łukasz Spintzyk's avatarŁukasz Spintzyk <lukasz.spintzyk@synaptics.com>
(cherry picked from commit d66b7ec1)
parent a4210fe0
Pipeline #346779 passed with stages
in 5 minutes and 26 seconds
......@@ -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;
}
/*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment