From a1e45fd2793cee5f75633f1fd862e2e2bb8a7197 Mon Sep 17 00:00:00 2001 From: Cyril Bur Date: Mon, 15 Jan 2018 16:17:59 +1100 Subject: 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 Reviewed-by: Nicholas Piggin Signed-off-by: Stewart Smith --- core/opal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/opal.c') 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; } -- cgit v1.1