From: Corbin Simpson Date: Mon, 8 Feb 2010 21:37:55 +0000 (-0800) Subject: radeong: Always return something for create_screen. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=184cefcd8c3169743955cb0b6af79a1793cda685;p=mesa.git radeong: Always return something for create_screen. Prevents a segfault on e.g. r600. --- 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; } }