Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Nov 2010 23:38:52 +0000 (UTC)
From:      Jung-uk Kim <jkim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r215355 - head/sys/dev/mii
Message-ID:  <201011152338.oAFNcqjG032298@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 		}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201011152338.oAFNcqjG032298>