Message ID | fae0379a29ec447e9dcc743d7aee194f@mail2012.asrmicro.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Fri, Jul 21, 2017 at 07:38:42AM +0000, Zhou Qiao(周侨) wrote: > Could you please help to take a look and give some comments? Thanks in > advance. I've queued this on the arm64 for-next/fixes/core branch. Will
On 2017年07月21日 16:32, Will Deacon wrote: > On Fri, Jul 21, 2017 at 07:38:42AM +0000, Zhou Qiao(周侨) wrote: >> Could you please help to take a look and give some comments? Thanks in >> advance. > I've queued this on the arm64 for-next/fixes/core branch. Got it. Thanks! > > Will Best Regards Qiao
diff --git a/arch/arm64/kernel/traps.c b/arch/arm64/kernel/traps.c index 0805b44..2e2ff88 100644 --- a/arch/arm64/kernel/traps.c +++ b/arch/arm64/kernel/traps.c @@ -274,10 +274,12 @@ static DEFINE_RAW_SPINLOCK(die_lock); void die(const char *str, struct pt_regs *regs, int err) { int ret; + unsigned long flags; + + raw_spin_lock_irqsave(&die_lock, flags); oops_enter(); - raw_spin_lock_irq(&die_lock); console_verbose(); bust_spinlocks(1); ret = __die(str, err, regs); @@ -287,13 +289,15 @@ void die(const char *str, struct pt_regs *regs, int err)