summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-09-09 08:12:45 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2014-09-09 08:12:45 +0100
commit07fe45b84bdf0d236a5bfdc433cc1a908e0c161b (patch)
tree48b81f549dbbc83384b3b95df7ad7570542678b7
parentfaf0bdd477b9ec73f943c3101a3ae30fd6d579ea (diff)
sna/glyphs: Prevent NULL vfunc deref with glyphs
Requires running a PRIME setup with Intel loaded as the secondary GPU and attempting to execute an empty glyph string. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/sna_glyphs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/sna_glyphs.c b/src/sna/sna_glyphs.c
index 94d702ae..a4052c6e 100644
--- a/src/sna/sna_glyphs.c
+++ b/src/sna/sna_glyphs.c
@@ -727,7 +727,7 @@ next_glyph:
}
list++;
}
- if (glyph_atlas)
+ if (glyph_atlas != NO_ATLAS)
tmp.done(sna, &tmp);
return true;