Parent: a1e585d99a6c747cfd91231dbd6aba0fcafbe458
Author: Pavel Raiskup <praiskup@redhat.com>
Committer: Johan Hedberg <johan.hedberg@intel.com>
Date: 2011-08-29 13:44:33
Tree: 23d01b7c1316d001c7c87cdf6c1c903e3ff62567
Off-by-one(two) error in form factor detection Indexing of chassis_map array has to be done like that: chassis_map[chassis_type * 2 - 1] because if not, everything is shifted by one. When (e.g.) chassis_type is 0x04 result should be "Low Profile Desktop" => "desktop" (not a "Pizza Box" => "server"). Lets see the 2.6.1 document on: http://www.dmtf.org/standards/smbios
Diffstat
| M | plugins/formfactor.c | | | 2 | +- |
1 files changed, 1 insertions(+), 1 deletions(-)