aboutsummaryrefslogtreecommitdiff
path: root/core/opal.c
diff options
context:
space:
mode:
authorCyril Bur <cyril.bur@au1.ibm.com>2018-01-15 16:17:59 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2018-01-30 20:42:38 -0600
commita1e45fd2793cee5f75633f1fd862e2e2bb8a7197 (patch)
tree8ad7bc8a0d4bff356c4a117decae79e4758a8cff /core/opal.c
parent08188269016392f2d42835ef4b8548c0f312f941 (diff)
downloadskiboot-a1e45fd2793cee5f75633f1fd862e2e2bb8a7197.zip
skiboot-a1e45fd2793cee5f75633f1fd862e2e2bb8a7197.tar.gz
skiboot-a1e45fd2793cee5f75633f1fd862e2e2bb8a7197.tar.bz2
core: Avoid possible uninitialized pointer read (CID 209502)
A likely copy and paste oversight. Fixes: 0d84ea6b (core: Add support for quiescing OPAL) Signed-off-by: Cyril Bur <cyril.bur@au1.ibm.com> Reviewed-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'core/opal.c')
-rw-r--r--core/opal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/opal.c b/core/opal.c
index 6d93ae0..c530528 100644
--- a/core/opal.c
+++ b/core/opal.c
@@ -283,7 +283,7 @@ int64_t opal_quiesce(uint32_t quiesce_type, int32_t cpu_target)
if (target) {
while (target->in_opal_call) {
if (tb_compare(mftb(), end) == TB_AAFTERB) {
- printf("OPAL quiesce CPU:%04x stuck in OPAL\n", c->pir);
+ printf("OPAL quiesce CPU:%04x stuck in OPAL\n", target->pir);
stuck = true;
break;
}