projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7116e99
)
[PATCH] profile: fix uaccess handling
author
Heiko Carstens
<heiko.carstens@de.ibm.com>
Thu, 7 Dec 2006 04:36:37 +0000
(20:36 -0800)
committer
Linus Torvalds
<torvalds@woody.osdl.org>
Thu, 7 Dec 2006 16:39:33 +0000
(08:39 -0800)
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/profile.c
patch
|
blob
|
blame
|
history
diff --git
a/kernel/profile.c
b/kernel/profile.c
index f940b462eec9a34eb7c3cad4ee958a2ec0f1f5bc..15b012df4ff1464bac6ea7b88f18b210353c8066 100644
(file)
--- a/
kernel/profile.c
+++ b/
kernel/profile.c
@@
-442,7
+442,8
@@
read_profile(struct file *file, char __user *buf, size_t count, loff_t *ppos)
read = 0;
while (p < sizeof(unsigned int) && count > 0) {
- put_user(*((char *)(&sample_step)+p),buf);
+ if (put_user(*((char *)(&sample_step)+p),buf))
+ return -EFAULT;
buf++; p++; count--; read++;
}
pnt = (char *)prof_buffer + p - sizeof(atomic_t);