DRI2: Avoid a NULL pointer dereference
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=41211 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
This commit is contained in:
		
							parent
							
								
									eeb21a133b
								
							
						
					
					
						commit
						bfa1a0dd19
					
				| 
						 | 
					@ -816,7 +816,8 @@ DRI2WaitSwap(ClientPtr client, DrawablePtr pDrawable)
 | 
				
			||||||
    /* If we're currently waiting for a swap on this drawable, reset
 | 
					    /* If we're currently waiting for a swap on this drawable, reset
 | 
				
			||||||
     * the request and suspend the client.  We only support one
 | 
					     * the request and suspend the client.  We only support one
 | 
				
			||||||
     * blocked client per drawable. */
 | 
					     * blocked client per drawable. */
 | 
				
			||||||
    if ((pPriv->swapsPending) &&
 | 
					    if (pPriv &&
 | 
				
			||||||
 | 
						pPriv->swapsPending &&
 | 
				
			||||||
	pPriv->blockedClient == NULL) {
 | 
						pPriv->blockedClient == NULL) {
 | 
				
			||||||
	ResetCurrentRequest(client);
 | 
						ResetCurrentRequest(client);
 | 
				
			||||||
	client->sequence--;
 | 
						client->sequence--;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue