summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell King <rmk@arm.linux.org.uk>2017-05-01 17:23:31 +0100
committerRussell King <rmk@arm.linux.org.uk>2017-05-01 17:23:31 +0100
commita4306d971717a2d3ea855d08c5667e02403b84fe (patch)
treeec7c493d6822e377badfe62967e775183a2f0856
parentfc0502197b821f601e8598c6465d4d2e1c8533fb (diff)
etnaviv: fix glyph upload crash
A missing memset() meant that the usermem node wasn't correctly initialised. Add the missing memset. Signed-off-by: Russell King <rmk@arm.linux.org.uk>
-rw-r--r--etnaviv/etnaviv_render.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/etnaviv/etnaviv_render.c b/etnaviv/etnaviv_render.c
index 0740f51..8ee9ee9 100644
--- a/etnaviv/etnaviv_render.c
+++ b/etnaviv/etnaviv_render.c
@@ -1229,6 +1229,8 @@ static void etnaviv_accel_glyph_upload(ScreenPtr pScreen, PicturePtr pDst,
if (!unode)
return;
+ memset(unode, 0, sizeof(*unode));
+
size = pitch * height + align - 1;
size &= ~(align - 1);