diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2009-09-13 23:36:11 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2009-09-13 23:36:11 +0000 |
commit | 4d196425328e9719c037d7a94b4758298d0b2ad6 (patch) | |
tree | 981d4acd0459d4947928d23aeca8f8cf68b43dbd /sys | |
parent | 93b46ed9d668274b7c21381abfcb0890ccc1f04b (diff) |
Don't try to check for ECC with fbdimm as the offset exceeds
the number of bytes currently read into the sm_data array.
Problem found by recent version of gcc.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/i2c/spdmem.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/dev/i2c/spdmem.c b/sys/dev/i2c/spdmem.c index b69d7510d32..48bc924751a 100644 --- a/sys/dev/i2c/spdmem.c +++ b/sys/dev/i2c/spdmem.c @@ -1,4 +1,4 @@ -/* $OpenBSD: spdmem.c,v 1.32 2009/05/23 09:14:39 jsg Exp $ */ +/* $OpenBSD: spdmem.c,v 1.33 2009/09/13 23:36:10 jsg Exp $ */ /* $NetBSD: spdmem.c,v 1.3 2007/09/20 23:09:59 xtraeme Exp $ */ /* @@ -658,9 +658,6 @@ spdmem_fbdimm_decode(struct spdmem_softc *sc, struct spdmem *s) else printf(" %dGB", dimm_size / 1024); - if (s->sm_data[SPDMEM_FBDIMM_PROTO] & SPDMEM_FBDIMM_PROTO_ECC) - printf(" ECC"); - dividend = s->sm_data[SPDMEM_FBDIMM_MTB_DIVIDEND]; divisor = s->sm_data[SPDMEM_FBDIMM_MTB_DIVISOR]; |