patch-2.4.6 linux/arch/mips/arc/identify.c

Next file: linux/arch/mips/arc/memory.c
Previous file: linux/arch/mips/arc/console.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.5/linux/arch/mips/arc/identify.c linux/arch/mips/arc/identify.c
@@ -36,7 +36,7 @@
 {
 	int i;
 
-	for (i = 0; i < sizeof(mach_table); i++) {
+	for (i = 0; i < (sizeof(mach_table) / sizeof (mach_table[0])); i++) {
 		if (!strcmp(s, mach_table[i].name))
 			return &mach_table[i];
 	}

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)