diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2013-03-09 20:43:00 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2013-03-09 20:43:00 -0500 |
commit | 091a2f4567a634566f70e12da85857231f05c3d1 (patch) | |
tree | 620b36c8c923d5b97ef1fd7149aeb22ab83d2127 /src | |
parent | 8413b326ea39c771fd38d0e5262f155c29984221 (diff) | |
download | seabios-hppa-091a2f4567a634566f70e12da85857231f05c3d1.zip seabios-hppa-091a2f4567a634566f70e12da85857231f05c3d1.tar.gz seabios-hppa-091a2f4567a634566f70e12da85857231f05c3d1.tar.bz2 |
Fix bug in NUMA node setup - don't create SRAT if NUMA not present.
Make sure to check for the case where there are no NUMA nodes passed
in from QEMU.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src')
-rw-r--r-- | src/acpi.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -655,6 +655,8 @@ build_srat(void) return NULL; int max_cpu = romfile_loadint("etc/max-cpus", 0); int nb_numa_nodes = (filesize / sizeof(u64)) - max_cpu; + if (!nb_numa_nodes) + return NULL; struct system_resource_affinity_table *srat; int srat_size = sizeof(*srat) + |