summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary
diff options
context:
space:
mode:
authorAlan Hourihane <[email protected]>2010-06-16 17:55:00 +0100
committerAlan Hourihane <[email protected]>2010-06-16 18:02:21 +0100
commit51729b5119df450f2f80c4e648b99fa35b9ec32d (patch)
tree4a6a419cd9b4e896830e0c2f15868967e454efe9 /src/gallium/auxiliary
parent71646528da5355468be8b52be662d0afd49a38f1 (diff)
draw: add alloc check
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r--src/gallium/auxiliary/draw/draw_llvm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/draw/draw_llvm.c b/src/gallium/auxiliary/draw/draw_llvm.c
index bd5d8853cf8..9117c1303dc 100644
--- a/src/gallium/auxiliary/draw/draw_llvm.c
+++ b/src/gallium/auxiliary/draw/draw_llvm.c
@@ -173,6 +173,8 @@ draw_llvm_create(struct draw_context *draw)
#endif
llvm = CALLOC_STRUCT( draw_llvm );
+ if (!llvm)
+ return NULL;
llvm->draw = draw;
llvm->engine = draw->engine;