Mesa (7.9): radeon: fix potential segfault in renderbuffer update
Alex Deucher
agd5f at kemper.freedesktop.org
Mon Nov 15 06:36:29 UTC 2010
Module: Mesa
Branch: 7.9
Commit: 9b1ac4d127805f6a14415596e4a557fad3d570a5
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9b1ac4d127805f6a14415596e4a557fad3d570a5
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 e1639ce..d4c7864 100644
--- a/src/mesa/drivers/dri/radeon/radeon_common_context.c
+++ b/src/mesa/drivers/dri/radeon/radeon_common_context.c
@@ -740,10 +740,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