From: Corbin Simpson Date: Mon, 27 Jul 2009 05:35:26 +0000 (-0700) Subject: radeon-gallium: If BO allocation fails, return NULL. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=725c1f004c9ec2f7b99146eecf0a35f1b3e54dca;p=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; }