]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/mm: Move error_code checks for bad faults earlier
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 19 Jul 2017 04:49:30 +0000 (14:49 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 3 Aug 2017 06:06:44 +0000 (16:06 +1000)
commitf51261b8bd2fbd21563f2a82612416bbad64278a
tree9f936b8755b0195baa2d064e97cc7cb0668e1e2e
parentcb864185294987493a3fdfe8d8173c61695c7557
powerpc/mm: Move error_code checks for bad faults earlier

There's no point looking for the VMA etc.. when we already know
we are going to fail.

This adds some code to set "code" for the si_code but that will
be gone in subsequent patches.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/mm/fault.c