File U_01-dri3-Return-NULL-from-radeon_dri3_pixmap_from_fd-if-calloc-fails.patch of Package xf86-video-ati

From: Tom St Denis <tom.stdenis@amd.com>
Date: Fri Apr 8 10:22:11 2016 -0400
Subject: [PATCH 1/20]dri3: Return NULL from radeon_dri3_pixmap_from_fd if calloc fails.
Patch-mainline: Upstream
Git-repo: git://anongit.freedesktop.org/xorg/driver/xf86-video-ati
Git-commit: bd4c72c8625996d842824ce4963f2d759fe2954a
References: bsc#990066
Signed-off-by: Max Staudt <mstaudt@suse.de>

Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
---
 src/radeon_dri3.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/radeon_dri3.c b/src/radeon_dri3.c
index 43a073b..c567024 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