summaryrefslogtreecommitdiffstats
path: root/src/gallium/winsys
diff options
context:
space:
mode:
authorCorbin Simpson <[email protected]>2009-07-26 22:35:26 -0700
committerCorbin Simpson <[email protected]>2009-07-26 22:35:26 -0700
commit725c1f004c9ec2f7b99146eecf0a35f1b3e54dca (patch)
tree9883607bd9cca903f103cc38e1110cfbdcdb56f9 /src/gallium/winsys
parent2cbd5ecfb666a757c4abef85dbe40fb53d647ec9 (diff)
radeon-gallium: If BO allocation fails, return NULL.
Diffstat (limited to 'src/gallium/winsys')
-rw-r--r--src/gallium/winsys/drm/radeon/core/radeon_buffer.c1
1 files changed, 1 insertions, 0 deletions
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;
}