tile: don't call show_regs_print_info() with corrupt current
authorChris Metcalf <cmetcalf@tilera.com>
Sat, 10 Aug 2013 16:22:43 +0000 (12:22 -0400)
committerChris Metcalf <cmetcalf@tilera.com>
Fri, 30 Aug 2013 15:56:54 +0000 (11:56 -0400)
commit4036c7d3542ce82ea343bf95dd05ca46aefba9aa
treed33fda13124e904569510e438ec4b525a31b8097
parent6fbeee29a2b87574527897c3ded1f92e236518c7
tile: don't call show_regs_print_info() with corrupt current

We use the validate_current() API to make sure that "current" seems
plausible before using it.  With the new show_regs_print_info()
API, we want to check that current is OK before calling it, since
otherwise we will end up in a recursive panic.

Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
arch/tile/kernel/process.c