barriers: Don't allow releasing the pointer on other client's barriers
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Jasper St. Pierre <jstpierre@mecheye.net>
This commit is contained in:
parent
2884b24929
commit
a1ee26e624
|
@ -591,6 +591,9 @@ ProcXIBarrierReleasePointer(ClientPtr client)
|
|||
return err;
|
||||
}
|
||||
|
||||
if (CLIENT_ID(barrier_id) != client->index)
|
||||
return BadAccess;
|
||||
|
||||
barrier = container_of(b, struct PointerBarrierClient, barrier);
|
||||
if (barrier->barrier_event_id == event_id)
|
||||
barrier->release_event_id = event_id;
|
||||
|
|
Loading…
Reference in New Issue
Block a user