From 07fe45b84bdf0d236a5bfdc433cc1a908e0c161b Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Tue, 9 Sep 2014 08:12:45 +0100 Subject: [PATCH] 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 --- src/sna/sna_glyphs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;