diff options
author | Andi Kleen <ak@linux.intel.com> | 2017-03-27 10:24:27 -0700 |
---|---|---|
committer | Andi Kleen <ak@linux.intel.com> | 2017-03-27 10:24:27 -0700 |
commit | 1a632c42ad434897b9639a46a511c0b25deff398 (patch) | |
tree | 96e9d66433e50773d932e027dc6cc67e178300f2 | |
parent | ad66dd599e8981f5433758ae6da4e8ae07c02258 (diff) | |
download | mcelog-1a632c42ad434897b9639a46a511c0b25deff398.tar.gz |
mcelog: Fix (harmless) off by one error in DMI scanning
Found by Klocwork.
Signed-off-by: Andi Kleen <ak@linux.intel.com>
-rw-r--r-- | dmi.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -314,7 +314,7 @@ legacy: goto out; } - for (p = abase, q = p + segsize; p < q; p += 0x10) { + for (p = abase, q = p + segsize - 1; p < q; p += 0x10) { if (!memcmp(p, "_SM_", 4) && (checksum(p, ((struct anchor *)p)->entry_length) == 0)) break; |