diff options
author | Michael S. Tsirkin <mst@redhat.com> | 2013-05-26 10:31:55 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2013-05-28 03:41:10 -0400 |
commit | 016be2e55d98aee0b97b94b200d6e0e110c8392a (patch) | |
tree | 6d4f2a671bd6ddb967333dad74a9454e69645766 /arch/x86/include/asm/uaccess_64.h | |
parent | f8abe86cc4fbd4ba083fd151b88e02fb3ce88b9c (diff) |
x86: uaccess s/might_sleep/might_fault/
The only reason uaccess routines might sleep
is if they fault. Make this explicit.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Peter 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-9-git-send-email-mst@redhat.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/include/asm/uaccess_64.h')
-rw-r--r-- | arch/x86/include/asm/uaccess_64.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/include/asm/uaccess_64.h b/arch/x86/include/asm/uaccess_64.h index 142810c457dc..4f7923dd0007 100644 --- a/arch/x86/include/asm/uaccess_64.h +++ b/arch/x86/include/asm/uaccess_64.h | |||
@@ -235,7 +235,7 @@ extern long __copy_user_nocache(void *dst, const void __user *src, | |||
235 | static inline int | 235 | static inline int |
236 | __copy_from_user_nocache(void *dst, const void __user *src, unsigned size) | 236 | __copy_from_user_nocache(void *dst, const void __user *src, unsigned size) |
237 | { | 237 | { |
238 | might_sleep(); | 238 | might_fault(); |
239 | return __copy_user_nocache(dst, src, size, 1); | 239 | return __copy_user_nocache(dst, src, size, 1); |
240 | } | 240 | } |
241 | 241 | ||