From: Corbin Simpson Date: Mon, 27 Jul 2009 05:35:26 +0000 (-0700) Subject: radeon-gallium: If BO allocation fails, return NULL. X-Git-Tag: android-x86-1.6~16^2~1269 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=725c1f004c9ec2f7b99146eecf0a35f1b3e54dca;p=android-x86%2Fexternal-mesa.git radeon-gallium: If BO allocation fails, return NULL. --- diff --git a/src/gallium/winsys/drm/radeon/core/radeon_buffer.c b/src/gallium/winsys/drm/radeon/core/radeon_buffer.c index 684a487f242..775bda8308f 100644 --- a/src/gallium/winsys/drm/radeon/core/radeon_buffer.c +++ b/src/gallium/winsys/drm/radeon/core/radeon_buffer.c @@ -72,6 +72,7 @@ static struct pipe_buffer *radeon_buffer_create(struct pipe_winsys *ws, alignment, domain, 0); if (radeon_buffer->bo == NULL) { FREE(radeon_buffer); + return NULL; } return &radeon_buffer->base; }