mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
loader: smbios version check is not correct
The version check for sku and family values is not correct, as this data is valid for version 2.4+, that also includes version 3.0 and above. Reported by: Dan McDonald Reviewed by: allanjude Approved by: allanjude (mentor) Differential Revision: https://reviews.freebsd.org/D8578
This commit is contained in:
parent
57b28934e9
commit
a3af8177e5
1 changed files with 2 additions and 1 deletions
|
|
@ -238,7 +238,8 @@ smbios_parse_table(const caddr_t addr)
|
|||
smbios_setenv("smbios.system.serial", addr, 0x07);
|
||||
smbios_setuuid("smbios.system.uuid", addr + 0x08, smbios.ver);
|
||||
#endif
|
||||
if (smbios.major >= 2 && smbios.minor >= 4) {
|
||||
if (smbios.major > 2 ||
|
||||
(smbios.major == 2 && smbios.minor >= 4)) {
|
||||
smbios_setenv("smbios.system.sku", addr, 0x19);
|
||||
smbios_setenv("smbios.system.family", addr, 0x1a);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue