[PATCH -mm] fix erroneous strcmp in modpost.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Andrew,

attached patch fixes an erroneous strcmp in modpost.c which let the
build of some external modules (madwifi, vloopback) on 2.6.17-rc4-mm1
fail. Additionally a small codingstyle one-liner :-)

kind regards,

Sven

Signed-off-by: Sven Schuster <[email protected]>

--- linux-2.6.17-rc4-mm1/scripts/mod/modpost.c.orig	2006-05-15 20:49:14.000000000 +0200
+++ linux-2.6.17-rc4-mm1/scripts/mod/modpost.c	2006-05-15 20:49:30.000000000 +0200
@@ -1194,9 +1194,9 @@ static void read_dump(const char *fname,
 					*d != '\0')
 			goto fail;
 
-		if ((strcmp(export, "EXPORT_SYMBOL_GPL")))
+		if (strcmp(export, "EXPORT_SYMBOL_GPL") == 0)
 			export_type = 1;
-		else if(strcmp(export, "EXPORT_SYMBOL") == 0)
+		else if (strcmp(export, "EXPORT_SYMBOL") == 0)
 			export_type = 0;
 		else
 			goto fail;

Attachment: pgpfErCIgbkkA.pgp
Description: PGP signature


[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux