git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
x86, SGI UV: TLB shootdown using broadcast assist unit, v6
[pandora-kernel.git]
/
arch
/
x86
/
kernel
/
tlb_uv.c
diff --git
a/arch/x86/kernel/tlb_uv.c
b/arch/x86/kernel/tlb_uv.c
index
b362913
..
c503b7f
100644
(file)
--- a/
arch/x86/kernel/tlb_uv.c
+++ b/
arch/x86/kernel/tlb_uv.c
@@
-492,6
+492,8
@@
static ssize_t uv_ptc_proc_write(struct file *file, const char __user *user,
long newmode;
char optstr[64];
+ if (count > 64)
+ return -EINVAL;
if (copy_from_user(optstr, user, count))
return -EFAULT;
optstr[count - 1] = '\0';