mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-29 22:00:09 +01:00
glx: Don't pass NULL to glxGetClient
These guards were dropped by the commit below, but it turns out they're
needed. Fixes crash on VT switch.
Fixes: d8ec33fe05 ("glx: Use vnd layer for dispatch (v4)")
Bugzilla: https://bugs.freedesktop.org/105233
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
parent
528c94c650
commit
22a3ffe68c
1 changed files with 2 additions and 2 deletions
|
|
@ -652,7 +652,7 @@ glxSuspendClients(void)
|
|||
int i;
|
||||
|
||||
for (i = 1; i < currentMaxClients; i++) {
|
||||
if (glxGetClient(clients[i])->client)
|
||||
if (clients[i] && glxGetClient(clients[i])->client)
|
||||
IgnoreClient(clients[i]);
|
||||
}
|
||||
|
||||
|
|
@ -668,7 +668,7 @@ glxResumeClients(void)
|
|||
glxBlockClients = FALSE;
|
||||
|
||||
for (i = 1; i < currentMaxClients; i++) {
|
||||
if (glxGetClient(clients[i])->client)
|
||||
if (clients[i] && glxGetClient(clients[i])->client)
|
||||
AttendClient(clients[i]);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue