diff options
author | marius <marius@FreeBSD.org> | 2007-12-01 19:42:33 +0000 |
---|---|---|
committer | marius <marius@FreeBSD.org> | 2007-12-01 19:42:33 +0000 |
commit | 5d3e8757cdb36213d013c6a211532fbcca83c49c (patch) | |
tree | 67530ea856d8be778713a2dfbee2c2a6a702b1be /sys/sparc64 | |
parent | 537b9f07099ad8a6cfa518836958269bda30e6bc (diff) | |
download | FreeBSD-src-5d3e8757cdb36213d013c6a211532fbcca83c49c.zip FreeBSD-src-5d3e8757cdb36213d013c6a211532fbcca83c49c.tar.gz |
Fix a non-fatal off-by-one error in the previous revision.
Diffstat (limited to 'sys/sparc64')
-rw-r--r-- | sys/sparc64/pci/psycho.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sparc64/pci/psycho.c b/sys/sparc64/pci/psycho.c index 6f38700..9f5632f 100644 --- a/sys/sparc64/pci/psycho.c +++ b/sys/sparc64/pci/psycho.c @@ -957,7 +957,7 @@ psycho_read_config(device_t dev, u_int bus, u_int slot, u_int func, u_int reg, if (offset % width != 0) return (-1); - if (reg > sizeof(sc->sc_pci_hpbcfg)) + if (reg >= sizeof(sc->sc_pci_hpbcfg)) return (0); if ((reg < PCIR_STATUS && reg + width > PCIR_STATUS) || |