Message ID | 1358360933-5323-4-git-send-email-ehabkost@redhat.com |
---|---|
State | New |
Headers | show |
diff --git a/vl.c b/vl.c index f29d926..1cf8ba6 100644 --- a/vl.c +++ b/vl.c @@ -1290,6 +1290,9 @@ static void numa_add(const char *optarg) bitmap_set(node_cpumask[nodenr], value, endvalue-value+1); } nb_numa_nodes++; + } else { + fprintf(stderr, "Invalid -numa option: %s\n", option); + exit(1); } }
Abort in case an invalid -numa option is provided, instead of silently ignoring it. Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> --- vl.c | 3 +++ 1 file changed, 3 insertions(+)