blob: d411318508b0ed430d97e61ff09a45702c5aef29 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
diff -NurpP --minimal linux-2.6.16.17-vs2.0.2-rc21/arch/alpha/kernel/osf_sys.c linux-2.6.16.17-vs2.0.2-rc21.1/arch/alpha/kernel/osf_sys.c
--- linux-2.6.16.17-vs2.0.2-rc21/arch/alpha/kernel/osf_sys.c 2006-05-11 15:36:52 +0200
+++ linux-2.6.16.17-vs2.0.2-rc21.1/arch/alpha/kernel/osf_sys.c 2006-05-28 04:25:40 +0200
@@ -617,7 +617,7 @@ osf_sysinfo(int command, char __user *bu
long len, err = -EINVAL;
offset = command-1;
- if (offset >= sizeof(sysinfo_table)/sizeof(char *)) {
+ if (offset >= 9) {
/* Digital UNIX has a few unpublished interfaces here */
printk("sysinfo(%d)", command);
goto out;
|