summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom St Denis <tom.stdenis@amd.com>2016-04-08 10:22:11 -0400
committerMichel Dänzer <michel.daenzer@amd.com>2016-04-11 16:13:44 +0900
commitbd4c72c8625996d842824ce4963f2d759fe2954a (patch)
treefac6c8efc5656874c25932f6c20b39269e6438d8
parent3300ea01fbdf770dc084eebbf2854fba35144220 (diff)
dri3: Return NULL from radeon_dri3_pixmap_from_fd if calloc fails.
Signed-off-by: Tom St Denis <tom.stdenis@amd.com> Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
-rw-r--r--src/radeon_dri3.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/radeon_dri3.c b/src/radeon_dri3.c
index 43a073be..c5670246 100644
--- a/src/radeon_dri3.c
+++ b/src/radeon_dri3.c
@@ -144,6 +144,7 @@ static PixmapPtr radeon_dri3_pixmap_from_fd(ScreenPtr screen,
}
screen->DestroyPixmap(pixmap);
+ return NULL;
}
}
#endif