]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/mprotect: Replace can_modify_mm with can_modify_vma
authorPedro Falcato <pedro.falcato@gmail.com>
Sat, 17 Aug 2024 00:18:30 +0000 (01:18 +0100)
committerLiam R. Howlett <Liam.Howlett@Oracle.com>
Mon, 19 Aug 2024 20:11:54 +0000 (16:11 -0400)
commitde54c14aaa9757f2d34b4f0d7056907bc977faf3
treef1d41355fb1ac545c261c404481abd51a643dc6f
parent1d6ae64ea22968d1536454c182aec5b645276033
mm/mprotect: Replace can_modify_mm with can_modify_vma

Avoid taking an extra trip down the mmap tree by checking the vmas
directly. mprotect (per POSIX) tolerates partial failure.

Signed-off-by: Pedro Falcato <pedro.falcato@gmail.com>
mm/mprotect.c