diff options
author | raj <raj@FreeBSD.org> | 2008-11-19 11:49:35 +0000 |
---|---|---|
committer | raj <raj@FreeBSD.org> | 2008-11-19 11:49:35 +0000 |
commit | 59c341efe8739a9ca3f1073acf15eb71579b561f (patch) | |
tree | 85f22003799afd647bb22f75025a777c197e2160 /sys | |
parent | 91c3cc23ade4868b418db045bbe756e53ccd5925 (diff) | |
download | FreeBSD-src-59c341efe8739a9ca3f1073acf15eb71579b561f.zip FreeBSD-src-59c341efe8739a9ca3f1073acf15eb71579b561f.tar.gz |
Fix off-by-one error in mbus_attach().
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arm/mv/obio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/arm/mv/obio.c b/sys/arm/mv/obio.c index 5dcbef1..1977148 100644 --- a/sys/arm/mv/obio.c +++ b/sys/arm/mv/obio.c @@ -99,7 +99,7 @@ mbus_attach(device_t dev) resource_list_init(&od->od_resources); resource_list_add(&od->od_resources, SYS_RES_MEMORY, 0, - od->od_base, od->od_base + od->od_size, od->od_size); + od->od_base, od->od_base + od->od_size - 1, od->od_size); for (i = 0; od->od_irqs[i] != -1; i++) { resource_list_add(&od->od_resources, SYS_RES_IRQ, i, |