mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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
a8bc31671a
commit
1068971fe0
2 changed files with 2 additions and 2 deletions
|
|
@ -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 a new issue