]> git.baikalelectronics.ru Git - kernel.git/commit
mm/usercopy: Drop extra is_vmalloc_or_module() check
authorLaura Abbott <labbott@redhat.com>
Tue, 4 Apr 2017 21:09:00 +0000 (14:09 -0700)
committerKees Cook <keescook@chromium.org>
Wed, 5 Apr 2017 19:30:18 +0000 (12:30 -0700)
commit44d2e1ee106fe23808d58de8773624370e4c9cbc
treee11991a0fd19229b26d945d72415938609238b99
parent5c2bde8cdc8fe2d0e6192ae748406c0db22a48c1
mm/usercopy: Drop extra is_vmalloc_or_module() check

Previously virt_addr_valid() was insufficient to validate if virt_to_page()
could be called on an address on arm64. This has since been fixed up so
there is no need for the extra check. Drop it.

Signed-off-by: Laura Abbott <labbott@redhat.com>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
mm/usercopy.c