]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/watchdog: Fix final-check recovered case
authorNicholas Piggin <npiggin@gmail.com>
Wed, 9 Aug 2017 12:41:24 +0000 (22:41 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 9 Aug 2017 13:45:31 +0000 (23:45 +1000)
commit1519309b7ff9f11014e64360da1755455a06cf8b
treea8d0f84c73ba61a103fda798a8ef39073c3c1610
parent1111f8f209dad20dc2e1d7edfe4c82125bc37872
powerpc/watchdog: Fix final-check recovered case

When the watchdog decides to panic, it takes the lock and double
checks everything (to avoid races with the CPU being unstuck or
panic()ed by something else).

The exit label was misplaced and would result in all-CPUs backtrace
and watchdog panic even in the case that the condition was found to be
resolved.

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