Title: [7901] trunk/scripts/mod/file2alias.c: modpost: fix segfault with prefixed arches
Revision
7901
Author
vapier
Date
2009-12-01 17:14:57 -0500 (Tue, 01 Dec 2009)

Log Message

modpost: fix segfault with prefixed arches

Modified Paths


Diff

Modified: trunk/scripts/mod/file2alias.c (7900 => 7901)


--- trunk/scripts/mod/file2alias.c	2009-12-01 07:49:43 UTC (rev 7900)
+++ trunk/scripts/mod/file2alias.c	2009-12-01 22:14:57 UTC (rev 7901)
@@ -726,7 +726,7 @@
 	match = strstr(symbol, name);
 	if (!match)
 		return 0;
-	return match[strlen(symbol)] == '\0';
+	return match[strlen(name)] == '\0';
 }
 
 static void do_table(void *symval, unsigned long size,
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to