]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 7528/1: uaccess: annotate [__]{get,put}_user functions with might_fault()
authorWill Deacon <will.deacon@arm.com>
Fri, 7 Sep 2012 17:24:10 +0000 (18:24 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 9 Sep 2012 16:28:48 +0000 (17:28 +0100)
commitd98d047dcabcaea457ed162a719dc160f365fb84
treed9f09ddcb8c4bc8d5a3885c89bc28942bd2e33bd
parent37a387a3e6c7c020afe6c637ad6929cbdd1ad633
ARM: 7528/1: uaccess: annotate [__]{get,put}_user functions with might_fault()

The user access functions may generate a fault, resulting in invocation
of a handler that may sleep.

This patch annotates the accessors with might_fault() so that we print a
warning if they are invoked from atomic context and help lockdep keep
track of mmap_sem.

Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/include/asm/uaccess.h