summaryrefslogtreecommitdiffstats
path: root/dmi.c
diff options
context:
space:
mode:
authorMichael Karcher <flashrom@mkarcher.dialup.fu-berlin.de>2010-02-12 05:44:18 +0000
committerMichael Karcher <flashrom@mkarcher.dialup.fu-berlin.de>2010-02-12 05:44:18 +0000
commit6b80f08c1e7c9a912d343cfe9d1310da6bb0a10e (patch)
tree91f23473eb813662482347128fac67e7f7aa6e3f /dmi.c
parent513c77c013cf2b546887ea9b07c891b37b310e6a (diff)
downloadflashrom-6b80f08c1e7c9a912d343cfe9d1310da6bb0a10e.zip
flashrom-6b80f08c1e7c9a912d343cfe9d1310da6bb0a10e.tar.gz
Fix DMI match logic
This bug slipped in on changing back match-specific to match-any Corresponding to flashrom svn r896. Signed-off-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Diffstat (limited to 'dmi.c')
-rw-r--r--dmi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/dmi.c b/dmi.c
index d165e9f..f97aff7 100644
--- a/dmi.c
+++ b/dmi.c
@@ -162,7 +162,8 @@ int dmi_match(const char *pattern)
return 0;
for (i = 0;i < DMI_ID_INVALID; i++)
- return dmi_compare(dmistrings[i], pattern);
+ if(dmi_compare(dmistrings[i], pattern))
+ return 1;
return 0;
}
OpenPOWER on IntegriCloud