Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 56d2ef78 authored by Michael S. Tsirkin's avatar Michael S. Tsirkin Committed by Ingo Molnar
Browse files

arm64: uaccess s/might_sleep/might_fault/



The only reason uaccess routines might sleep
is if they fault. Make this explicit.

Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
Acked-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
Signed-off-by: default avatarPeter Zijlstra <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1369577426-26721-2-git-send-email-mst@redhat.com


Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
parent e0acd0bd
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -166,7 +166,7 @@ do { \

#define get_user(x, ptr)						\
({									\
	might_sleep();							\
	might_fault();							\
	access_ok(VERIFY_READ, (ptr), sizeof(*(ptr))) ?			\
		__get_user((x), (ptr)) :				\
		((x) = 0, -EFAULT);					\
@@ -227,7 +227,7 @@ do { \

#define put_user(x, ptr)						\
({									\
	might_sleep();							\
	might_fault();							\
	access_ok(VERIFY_WRITE, (ptr), sizeof(*(ptr))) ?		\
		__put_user((x), (ptr)) :				\
		-EFAULT;						\