sh: Fix up recursive fault in oops with unset TTB.
authorPaul Mundt <lethal@linux-sh.org>
Tue, 24 Jul 2012 04:15:54 +0000 (13:15 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Wed, 25 Jul 2012 04:11:13 +0000 (13:11 +0900)
commit90eed7d87b748f9c0d11b9bad64a4c41e31b78c4
treec7a37d40dc33189236b343cd1831bdeaf8e6fa59
parent92f53a85db3730ae088aaeb7900f85909fd1eda6
sh: Fix up recursive fault in oops with unset TTB.

Presently the oops code looks for the pgd either from the mm context or
the cached TTB value. There are presently cases where the TTB can be
unset or otherwise cleared by hardware, which we weren't handling,
resulting in recursive faults on the NULL pgd. In these cases we can
simply reload from swapper_pg_dir and continue on as normal.

Cc: stable@vger.kernel.org
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/mm/fault.c