]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ARM: 8414/1: __copy_to_user_memcpy: fix mmap semaphore usage
authorNicolas Pitre <nicolas.pitre@linaro.org>
Wed, 12 Aug 2015 15:45:02 +0000 (16:45 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 18 Aug 2015 12:59:59 +0000 (13:59 +0100)
commit0f64b247e63ac8c214efa6725366b42563ab138c
treeb328dc3eed4838935cebba95bba93b5946ca82a3
parent09edea4f8fdeb4e292b80d493296070f5ec64e6e
ARM: 8414/1: __copy_to_user_memcpy: fix mmap semaphore usage

The mmap semaphore should not be taken when page faults are disabled.
Since pagefault_disable() no longer disables preemption, we now need
to use faulthandler_disabled() in place of in_atomic().

Signed-off-by: Nicolas Pitre <nico@linaro.org>
Tested-by: Mark Salter <msalter@redhat.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/lib/uaccess_with_memcpy.c