svn commit: r210897 - stable/6/sys/dev/ipmi
John Baldwin
jhb at FreeBSD.org
Thu Aug 5 20:49:48 UTC 2010
Author: jhb
Date: Thu Aug 5 20:49:47 2010
New Revision: 210897
URL: http://svn.freebsd.org/changeset/base/210897
Log:
MFC 210604:
Fix test for double-nul characters that terminate the string table at
the end of each SMBIOS/DMI structure.
Modified:
stable/6/sys/dev/ipmi/ipmi_smbios.c
Directory Properties:
stable/6/sys/ (props changed)
stable/6/sys/contrib/pf/ (props changed)
stable/6/sys/dev/cxgb/ (props changed)
Modified: stable/6/sys/dev/ipmi/ipmi_smbios.c
==============================================================================
--- stable/6/sys/dev/ipmi/ipmi_smbios.c Thu Aug 5 20:45:46 2010 (r210896)
+++ stable/6/sys/dev/ipmi/ipmi_smbios.c Thu Aug 5 20:49:47 2010 (r210897)
@@ -189,7 +189,7 @@ smbios_walk_table(uint8_t *p, int entrie
* formatted area of this structure.
*/
p += s->length;
- while (p[0] != 0 && p[1] != 0)
+ while (!(p[0] == 0 && p[1] == 0))
p++;
/*
More information about the svn-src-stable
mailing list