diff options
author | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-07-08 14:51:45 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-07-08 14:51:45 +1000 |
commit | f74f1c83ef9165a9073ad33000ffe6576ee22c8f (patch) | |
tree | e55fcab5f18bb5fa7cd072fe95ef8955ec5b9fcd /core/opal.c | |
parent | fc55e94c963e174eb81fc3c0bbde7f33ed6905ae (diff) | |
download | skiboot-f74f1c83ef9165a9073ad33000ffe6576ee22c8f.zip skiboot-f74f1c83ef9165a9073ad33000ffe6576ee22c8f.tar.gz skiboot-f74f1c83ef9165a9073ad33000ffe6576ee22c8f.tar.bz2 |
fix potential integer overflow for giant cpu_max_pir
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'core/opal.c')
-rw-r--r-- | core/opal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/opal.c b/core/opal.c index 5776e61..0edbf0a 100644 --- a/core/opal.c +++ b/core/opal.c @@ -141,7 +141,7 @@ void add_opal_node(void) entry = (uint64_t)&opal_entry; base = SKIBOOT_BASE; size = (CPU_STACKS_BASE + - (cpu_max_pir + 1) * STACK_SIZE) - SKIBOOT_BASE; + (uint64_t)(cpu_max_pir + 1) * STACK_SIZE) - SKIBOOT_BASE; if (!opal_node) { opal_node = dt_new(dt_root, "ibm,opal"); |