powerpc/mm: convert coprocessor fault to lock_mm_and_find_vma()
authorLinus Torvalds <torvalds@linux-foundation.org>
Sat, 24 Jun 2023 18:17:05 +0000 (11:17 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 24 Jun 2023 21:12:58 +0000 (14:12 -0700)
commit2cd76c50d0b41cec5c87abfcdf25b236a2793fb6
tree79bd0cd91b5952ad5e2cf93c2a64e8a3c1096642
parenta050ba1e7422f2cc60ff8bfde3f96d34d00cb585
powerpc/mm: convert coprocessor fault to lock_mm_and_find_vma()

This is one of the simple cases, except there's no pt_regs pointer.
Which is fine, as lock_mm_and_find_vma() is set up to work fine with a
NULL pt_regs.

Powerpc already enabled LOCK_MM_AND_FIND_VMA for the main CPU faulting,
so we can just use the helper without any extra work.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/powerpc/mm/copro_fault.c