Merge pull request #189 from legoater/master

irqbalance: Check validity of numa_node
This commit is contained in:
Neil Horman 2021-08-06 14:09:49 -04:00 committed by GitHub
commit a7f81483a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -376,6 +376,11 @@ get_numa_node:
else
new->numa_node = get_numa_node(numa_node);
if (!new->numa_node) {
log(TO_CONSOLE, LOG_WARNING, "IRQ %d has an unknown node\n", irq);
new->numa_node = get_numa_node(NUMA_NO_NODE);
}
cpus_setall(new->cpumask);
if (devpath != NULL) {
sprintf(path, "%s/local_cpus", devpath);