1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-04-27 23:22:37 +02:00

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>
This commit is contained in:
Michael Karcher 2010-02-12 05:44:18 +00:00
parent 48f1d73b5f
commit 4dfa093bd5

3
dmi.c
View File

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