From: Andi Kleen <andi@firstfloor.org>

numa_alloc_local passes a NULL bitmap do dombind, so it shouldn't
reference it. This fixes numademo.

--- numactl-2.0.0/libnuma.c-o	2008-06-06 15:32:13.000000000 +0200
+++ numactl-2.0.0/libnuma.c	2008-06-06 15:33:52.000000000 +0200
@@ -271,7 +271,8 @@
 
 static void dombind(void *mem, size_t size, int pol, struct bitmask *bmp)
 { 
-	if (mbind(mem, size, pol, bmp->maskp, bmp->size, mbind_flags) < 0)
+	if (mbind(mem, size, pol, bmp ? bmp->maskp : NULL, bmp ? bmp->size : 0, 
+		  mbind_flags) < 0)
 		numa_error("mbind"); 
 } 
 
