aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Thompson <daniel.thompson@linaro.org>2016-11-25 14:24:39 +0000
committerDaniel Thompson <daniel.thompson@linaro.org>2016-11-25 14:43:58 +0000
commit3016c106f6c4a7aa0dde2b1c3cf29cd97d57322a (patch)
tree9c69caf21fd496e699e8318be1624cb59aca940a
parent65fcaae9fa9879e8982e10bdb0280276d4b48598 (diff)
mrdump: Fix uninitialized use of cpu
Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
-rw-r--r--drivers/misc/mediatek/aee/mrdump/mrdump_full.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/misc/mediatek/aee/mrdump/mrdump_full.c b/drivers/misc/mediatek/aee/mrdump/mrdump_full.c
index 879952db4667..f50cc86b4f22 100644
--- a/drivers/misc/mediatek/aee/mrdump/mrdump_full.c
+++ b/drivers/misc/mediatek/aee/mrdump/mrdump_full.c
@@ -232,11 +232,12 @@ static void __mrdump_reboot_va(AEE_REBOOT_MODE reboot_mode, struct pt_regs *regs
local_irq_disable();
local_fiq_disable();
+ cpu = get_HW_cpuid();
+
#if defined(CONFIG_SMP)
__mrdump_reboot_stop_all(crash_record, cpu);
#endif
- cpu = get_HW_cpuid();
crashing_cpu = cpu;
crash_save_cpu(regs, cpu);