diff options
author | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-07-08 14:49:48 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-07-08 14:49:48 +1000 |
commit | fc55e94c963e174eb81fc3c0bbde7f33ed6905ae (patch) | |
tree | 2976c9114a924b059a509b4b9991f4bc25af3e95 /core | |
parent | 709f0877f03250f07c47882999851603e3945175 (diff) | |
download | talos-skiboot-fc55e94c963e174eb81fc3c0bbde7f33ed6905ae.tar.gz talos-skiboot-fc55e94c963e174eb81fc3c0bbde7f33ed6905ae.zip |
verify that PIR in init_all_cpus() is within our bounds for cpu_stacks[pir]
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'core')
-rw-r--r-- | core/cpu.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -488,6 +488,7 @@ void init_all_cpus(void) " State=%d\n", pir, server_no, state); /* Setup thread 0 */ + assert(pir <= cpu_max_pir); t = pt = &cpu_stacks[pir].cpu; if (t != boot_cpu) { init_cpu_thread(t, state, pir); |