projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e0acd0b
)
arm64: uaccess s/might_sleep/might_fault/
author
Michael S. Tsirkin
<
[email protected]
>
Sun, 26 May 2013 14:30:42 +0000
(17:30 +0300)
committer
Ingo Molnar
<
[email protected]
>
Tue, 28 May 2013 07:41:06 +0000
(09:41 +0200)
The only reason uaccess routines might sleep
is if they fault. Make this explicit.
Signed-off-by: Michael S. Tsirkin <
[email protected]
>
Acked-by: Catalin Marinas <
[email protected]
>
Signed-off-by: Peter Zijlstra <
[email protected]
>
Cc: Linus Torvalds <
[email protected]
>
Cc: Andrew Morton <
[email protected]
>
Cc: Peter Zijlstra <
[email protected]
>
Link:
http://lkml.kernel.org/r/
[email protected]
Signed-off-by: Ingo Molnar <
[email protected]
>
arch/arm64/include/asm/uaccess.h
patch
|
blob
|
history
diff --git
a/arch/arm64/include/asm/uaccess.h
b/arch/arm64/include/asm/uaccess.h
index 008f8481da65d97d5022c3763ec8ba909e9d38b8..edb3d5c73a3232c35532bd5e489add1cabf7201c 100644
(file)
--- a/
arch/arm64/include/asm/uaccess.h
+++ b/
arch/arm64/include/asm/uaccess.h
@@
-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; \