summaryrefslogtreecommitdiff
path: root/src/sna/sna_driver.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-08-08 14:04:14 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2014-08-08 14:04:14 +0100
commit8d135867c886e98fa0bc5a7a21a1b3d84851daaa (patch)
treee99c54c8e55b8abd638d938ac112a069f9bc711d /src/sna/sna_driver.c
parent59f0374188e6d2eb2fd18e3dfb517087e09ae13f (diff)
sna: Update check for static driver data on loading error
Bugzilla: https://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/1354424 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_driver.c')
-rw-r--r--src/sna/sna_driver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/sna_driver.c b/src/sna/sna_driver.c
index dc0a6593..f903adf2 100644
--- a/src/sna/sna_driver.c
+++ b/src/sna/sna_driver.c
@@ -1184,7 +1184,7 @@ static void sna_free_screen(FREE_SCREEN_ARGS_DECL)
struct sna *sna = to_sna(scrn);
DBG(("%s\n", __FUNCTION__));
- if ((uintptr_t)sna & 1)
+ if ((uintptr_t)sna & 3)
return;
scrn->driverPrivate = (void *)((uintptr_t)sna->info | (sna->flags & SNA_IS_SLAVED) | 2);