Mesa (master): radeon: fix potential segfault in renderbuffer update

Alex Deucher agd5f at kemper.freedesktop.org
Mon Nov 15 06:34:43 UTC 2010


Module: Mesa
Branch: master
Commit: ef0720758e5ba34d0d163bdf5efc6e8dabd65aa8
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=ef0720758e5ba34d0d163bdf5efc6e8dabd65aa8

Author: Daniel Lichtenberger <daniel.lichtenberger at gmail.com>
Date:   Mon Nov 15 01:32:42 2010 -0500

radeon: fix potential segfault in renderbuffer update

Fixes:
https://bugs.freedesktop.org/show_bug.cgi?id=31617

Signed-off-by: Alex Deucher <alexdeucher at gmail.com>

---

 .../drivers/dri/radeon/radeon_common_context.c     |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/src/mesa/drivers/dri/radeon/radeon_common_context.c b/src/mesa/drivers/dri/radeon/radeon_common_context.c
index a436ec1..edae7e4 100644
--- a/src/mesa/drivers/dri/radeon/radeon_common_context.c
+++ b/src/mesa/drivers/dri/radeon/radeon_common_context.c
@@ -741,10 +741,9 @@ radeon_update_renderbuffers(__DRIcontext *context, __DRIdrawable *drawable,
 						buffers[i].flags);
 
 			if (bo == NULL) {
-
 				fprintf(stderr, "failed to attach %s %d\n",
 					regname, buffers[i].name);
-
+				continue;
 			}
 
 			ret = radeon_bo_get_tiling(bo, &tiling_flags, &pitch);




More information about the mesa-commit mailing list