diff options
author | Anas Nashif <anas.nashif@intel.com> | 2013-03-06 02:05:00 -0800 |
---|---|---|
committer | Anas Nashif <anas.nashif@intel.com> | 2013-03-06 02:05:00 -0800 |
commit | 9796adc3d2d5e1d65438bd5e2b7e46f512945b6b (patch) | |
tree | 73ba96e5fc7439002c938661ea9f5c01074645fc | |
parent | 294fb44c744d4639910d0c37e9512bd989ccd4bb (diff) | |
download | dmidecode-9796adc3d2d5e1d65438bd5e2b7e46f512945b6b.tar.gz dmidecode-9796adc3d2d5e1d65438bd5e2b7e46f512945b6b.tar.bz2 dmidecode-9796adc3d2d5e1d65438bd5e2b7e46f512945b6b.zip |
Fix boundary checks of memory array location codes (DMI type 16).
-rw-r--r-- | dmidecode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dmidecode.c b/dmidecode.c index 5c7ad0e..7b081f9 100644 --- a/dmidecode.c +++ b/dmidecode.c @@ -2100,7 +2100,7 @@ static const char *dmi_memory_array_location(u8 code) if (code >= 0x01 && code <= 0x0A) return location[code - 0x01]; - if (code >= 0xA0 && code <= 0xA4) + if (code >= 0xA0 && code <= 0xA3) return location_0xA0[code - 0xA0]; return out_of_spec; } |