diff options
author | Corbin Simpson <MostAwesomeDude@gmail.com> | 2009-07-26 22:35:26 -0700 |
---|---|---|
committer | Corbin Simpson <MostAwesomeDude@gmail.com> | 2009-07-26 22:35:26 -0700 |
commit | 725c1f004c9ec2f7b99146eecf0a35f1b3e54dca (patch) | |
tree | 9883607bd9cca903f103cc38e1110cfbdcdb56f9 /src/gallium/winsys | |
parent | 2cbd5ecfb666a757c4abef85dbe40fb53d647ec9 (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.c | 1 |
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 684a487f24..775bda8308 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; } |