contigmem fix error path

This commit is contained in:
quackerd 2022-05-29 07:24:44 +08:00
parent 4f93dbc0c0
commit ce2e4ce798

View File

@ -196,9 +196,9 @@ contigmem_load()
contigmem_nodecnt = vm_ndomains;
if (contigmem_nodecnt > CONTIGMEM_MAX_NODECNT) {
printf("contigmem_load: too many NUMA nodes detected: %d\n", contigmem_nodecnt);
printf("contigmem_load: too many NUMA nodes detected: %d > %d\n", contigmem_nodecnt, CONTIGMEM_MAX_NODECNT);
error = EINVAL;
goto error;
return error;
}
DBGPRINT("contigmem_load: detected %d vmdomain\n", contigmem_nodecnt);