projects
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
x86: apic_32 - introduce calibrate_APIC_clock
[linux-2.6]
/
arch
/
x86
/
kernel
/
tlb_uv.c
diff --git
a/arch/x86/kernel/tlb_uv.c
b/arch/x86/kernel/tlb_uv.c
index
c503b7f
..
d0fbb77
100644
(file)
--- a/
arch/x86/kernel/tlb_uv.c
+++ b/
arch/x86/kernel/tlb_uv.c
@@
-492,7
+492,7
@@
static ssize_t uv_ptc_proc_write(struct file *file, const char __user *user,
long newmode;
char optstr[64];
- if (count
> 64
)
+ if (count
== 0 || count > sizeof(optstr)
)
return -EINVAL;
if (copy_from_user(optstr, user, count))
return -EFAULT;