From 184cefcd8c3169743955cb0b6af79a1793cda685 Mon Sep 17 00:00:00 2001 From: Corbin Simpson Date: Mon, 8 Feb 2010 13:37:55 -0800 Subject: radeong: Always return something for create_screen. Prevents a segfault on e.g. r600. --- src/gallium/winsys/drm/radeon/core/radeon_drm.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gallium/winsys/drm/radeon/core/radeon_drm.c b/src/gallium/winsys/drm/radeon/core/radeon_drm.c index 257bdca223d..5881abab2c2 100644 --- a/src/gallium/winsys/drm/radeon/core/radeon_drm.c +++ b/src/gallium/winsys/drm/radeon/core/radeon_drm.c @@ -132,6 +132,9 @@ struct pipe_screen* radeon_create_screen(struct drm_api* api, if (is_r3xx(rwinsys->pci_id)) { radeon_setup_winsys(drmFB, rwinsys); return r300_create_screen(rwinsys); + } else { + FREE(rwinsys); + return NULL; } } -- cgit v1.2.3