powerpc: Fix second nested oops hang
authorNicholas Piggin <npiggin@gmail.com>
Tue, 8 Nov 2016 12:14:45 +0000 (23:14 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 18 Nov 2016 11:40:42 +0000 (22:40 +1100)
commit7458e8b2ce62e65051fec0bcb14cac35d4f1118d
tree841e9e6f98052fc24b57abcdd2971608d00b4faf
parent6f44b20ee9b4130345c189c0c90ef6604bcd8005
powerpc: Fix second nested oops hang

When ending an oops, don't clear die_owner unless the nest count
went to zero. This prevents a second nested oops from hanging forever
on the die_lock.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/traps.c