svn commit: r215355 - head/sys/dev/mii

Jung-uk Kim jkim at FreeBSD.org
Mon Nov 15 23:38:53 UTC 2010


Author: jkim
Date: Mon Nov 15 23:38:52 2010
New Revision: 215355
URL: http://svn.freebsd.org/changeset/base/215355

Log:
  Restore the previous behaviour of substring match.

Modified:
  head/sys/dev/mii/brgphy.c

Modified: head/sys/dev/mii/brgphy.c
==============================================================================
--- head/sys/dev/mii/brgphy.c	Mon Nov 15 23:14:14 2010	(r215354)
+++ head/sys/dev/mii/brgphy.c	Mon Nov 15 23:38:52 2010	(r215355)
@@ -160,7 +160,8 @@ detect_hs21(struct bce_softc *bce_sc)
 	if (bce_sc->bce_chipid == HS21_BCM_CHIPID) {
 		sysenv = getenv("smbios.system.product");
 		if (sysenv != NULL) {
-			if (strcmp(sysenv, HS21_PRODUCT_ID) == 0)
+			if (strncmp(sysenv, HS21_PRODUCT_ID,
+			    strlen(HS21_PRODUCT_ID)) == 0)
 				found = 1;
 			freeenv(sysenv);
 		}


More information about the svn-src-head mailing list