]> 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)
commiteaaca602bd34a9335afbeafed84cf97469364d16
tree9f936b8755b0195baa2d064e97cc7cb0668e1e2e
parentcd66ea1e55ee1c8755fb7422639d49d4af455cfd
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