Skip to content

Commit 016be2e

Browse files
mstsirkinIngo Molnar
authored andcommitted
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>
1 parent f8abe86 commit 016be2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/include/asm/uaccess_64.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ extern long __copy_user_nocache(void *dst, const void __user *src,
235235
static inline int
236236
__copy_from_user_nocache(void *dst, const void __user *src, unsigned size)
237237
{
238-
might_sleep();
238+
might_fault();
239239
return __copy_user_nocache(dst, src, size, 1);
240240
}
241241

0 commit comments

Comments
 (0)