From 6b1d1cfbcd6aa3396f11366ad60d54824e4a09ab Mon Sep 17 00:00:00 2001 From: Russell King Date: Tue, 26 Aug 2014 15:12:56 +0100 Subject: vivante: fix buggy error path when mapping non-shmem bos We were freeing the vivante_pixmap structure, but were then going on to store a pointer to it - this is not what was intended. Ensure that we mark the pixmap as being without a vivante_pixmap structure. Signed-off-by: Russell King --- src/vivante.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/vivante.c b/src/vivante.c index f68e2c8..8823896 100644 --- a/src/vivante.c +++ b/src/vivante.c @@ -125,6 +125,7 @@ void vivante_set_pixmap_bo(PixmapPtr pixmap, struct drm_armada_bo *bo) if (!vivante_map_bo_to_gpu(vivante, bo, &vPix->info, &vPix->handle)) { free(vPix); + vPix = NULL; goto fail; } } -- cgit v1.2.3