From 18ef6b1265dcd83f511f287388f5e8533e97b35a Mon Sep 17 00:00:00 2001 From: Jerome Glisse Date: Fri, 8 Feb 2013 18:57:42 -0500 Subject: [PATCH] xorg: fix exa finish access The exa core will already set the pointer to NULL prior calling the callback function. So don't bail out in the callback if it's already NULL. Signed-off-by: Jerome Glisse (cherry picked from commit 3310acdf4756feb82bf043e7663b6dd8d6e3f7c9) --- src/gallium/state_trackers/xorg/xorg_exa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/state_trackers/xorg/xorg_exa.c b/src/gallium/state_trackers/xorg/xorg_exa.c index f010be65227..3e764f8a7f5 100644 --- a/src/gallium/state_trackers/xorg/xorg_exa.c +++ b/src/gallium/state_trackers/xorg/xorg_exa.c @@ -318,7 +318,7 @@ ExaFinishAccess(PixmapPtr pPix, int index) if (!priv) return; - if (!priv->map_transfer || pPix->devPrivate.ptr == NULL) + if (!priv->map_transfer) return; exa_debug_printf("ExaFinishAccess %d\n", index);