summaryrefslogtreecommitdiff
blob: cfc6475923765599a308f1492033446b16674558 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
Index: linux-2.6.16/arch/alpha/kernel/osf_sys.c
===================================================================
--- linux-2.6.16.orig/arch/alpha/kernel/osf_sys.c
+++ linux-2.6.16/arch/alpha/kernel/osf_sys.c
@@ -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;