Demand minimum I/O size rather than 0 when it calls
bus_alloc_resource(dev, SYS_RES_IOPORT, ...) Pointed-out by: Yamamoto-san shigeru@iij.ad.jp
This commit is contained in:
parent
5757abe58a
commit
794b5d1b6e
@ -143,7 +143,7 @@ nsp_alloc_resource(DEVPORT_PDEVICE dev)
|
||||
|
||||
sc->port_rid = 0;
|
||||
sc->port_res = bus_alloc_resource(dev, SYS_RES_IOPORT, &sc->port_rid,
|
||||
0, ~0, 0, RF_ACTIVE);
|
||||
0, ~0, NSP_IOSIZE, RF_ACTIVE);
|
||||
if (sc->port_res == NULL) {
|
||||
nsp_release_resource(dev);
|
||||
return(ENOMEM);
|
||||
|
@ -148,7 +148,7 @@ stg_alloc_resource(DEVPORT_PDEVICE dev)
|
||||
|
||||
sc->port_rid = 0;
|
||||
sc->port_res = bus_alloc_resource(dev, SYS_RES_IOPORT, &sc->port_rid,
|
||||
0, ~0, 0, RF_ACTIVE);
|
||||
0, ~0, STGIOSZ, RF_ACTIVE);
|
||||
if (sc->port_res == NULL) {
|
||||
stg_release_resource(dev);
|
||||
return(ENOMEM);
|
||||
|
Loading…
Reference in New Issue
Block a user