1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-31 16:57:10 +00:00

Correct an off-by-one error in the calculation of the number of interrupt

resources we're managing.
This commit is contained in:
Benno Rice 2003-01-13 03:24:07 +00:00
parent 2c19171bc1
commit e9a0b8260e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=109156

View File

@ -208,7 +208,7 @@ openpic_attach(device_t dev)
sc->sc_rman.rm_descr = device_get_nameunit(dev);
if (rman_init(&sc->sc_rman) != 0 ||
rman_manage_region(&sc->sc_rman, 0, sc->sc_nirq - 1) != 0) {
rman_manage_region(&sc->sc_rman, 0, sc->sc_nirq) != 0) {
device_printf(dev, "could not set up resource management");
return (ENXIO);
}