xf86-video-intel: src/sna/sna_dri2.c

Chris Wilson ickle at kemper.freedesktop.org
Thu Mar 5 06:19:10 PST 2015


 src/sna/sna_dri2.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 6522fedaa1023939c046fb6e9a1d2f48d30a37c8
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Thu Mar 5 14:18:07 2015 +0000

    sna/dri2: Don't dereference a NULL drawable on client shutdown whilst flipping
    
    A dropped if(!NULL) check from the previous patch.
    
    Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>

diff --git a/src/sna/sna_dri2.c b/src/sna/sna_dri2.c
index 1b9622f..83e652d 100644
--- a/src/sna/sna_dri2.c
+++ b/src/sna/sna_dri2.c
@@ -2533,7 +2533,8 @@ static void sna_dri2_flip_event(struct sna_dri2_event *flip)
 			}
 		} else if (!sna_dri2_flip_continue(flip)) {
 			DBG(("%s: no longer able to flip\n", __FUNCTION__));
-			__sna_dri2_copy_event(flip, 0);
+			if (flip->draw != NULL)
+				__sna_dri2_copy_event(flip, 0);
 			if (flip->flip_continue == FLIP_COMPLETE) {
 				DBG(("%s: fake triple buffering, unblocking client\n", __FUNCTION__));
 				frame_swap_complete(flip, DRI2_BLIT_COMPLETE);


More information about the xorg-commit mailing list