Skip to content

Commit f8abe86

Browse files
mstsirkinIngo Molnar
authored andcommitted
tile: 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> Acked-by: Chris Metcalf <cmetcalf@tilera.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-8-git-send-email-mst@redhat.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
1 parent 1af1717 commit f8abe86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/tile/include/asm/uaccess.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ extern unsigned long __copy_in_user_inatomic(
442442
static inline unsigned long __must_check
443443
__copy_in_user(void __user *to, const void __user *from, unsigned long n)
444444
{
445-
might_sleep();
445+
might_fault();
446446
return __copy_in_user_inatomic(to, from, n);
447447
}
448448

0 commit comments

Comments
 (0)