Blame numactl-2.0.9-hw-check-segfault.patch
|
Petr Holasek |
0bca0a |
diff -up numactl-2.0.9/numactl.c.orig numactl-2.0.9/numactl.c
|
|
Petr Holasek |
0bca0a |
--- numactl-2.0.9/numactl.c.orig 2014-07-31 15:42:21.474060364 +0200
|
|
Petr Holasek |
0bca0a |
+++ numactl-2.0.9/numactl.c 2014-07-31 15:42:32.894085763 +0200
|
|
Petr Holasek |
0bca0a |
@@ -242,6 +242,11 @@ void hardware(void)
|
|
Petr Holasek |
0bca0a |
int prevnode=-1;
|
|
Petr Holasek |
0bca0a |
int skip=0;
|
|
Petr Holasek |
0bca0a |
int maxnode = numa_max_node();
|
|
Petr Holasek |
0bca0a |
+
|
|
Petr Holasek |
0bca0a |
+ if (numa_available() < 0) {
|
|
Petr Holasek |
0bca0a |
+ printf("No NUMA available on this system\n");
|
|
Petr Holasek |
0bca0a |
+ exit(1);
|
|
Petr Holasek |
0bca0a |
+ }
|
|
Petr Holasek |
0bca0a |
|
|
Petr Holasek |
0bca0a |
for (i=0; i<=maxnode; i++)
|
|
Petr Holasek |
0bca0a |
if (numa_bitmask_isbitset(numa_nodes_ptr, i))
|