Restore the previous behaviour of substring match.

This commit is contained in:
jkim 2010-11-15 23:38:52 +00:00
parent 5c90ddd6c4
commit e41a851f03

View File

@ -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);
}