mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Only allocate 1 port for non-zero rids. Either we'll get the proper
length form the enumeration mechanism, or we're dealing with the FDCTL register, which is only 1 port long.
This commit is contained in:
parent
1c80835774
commit
d90aafb50d
1 changed files with 1 additions and 1 deletions
|
|
@ -90,7 +90,7 @@ fdc_isa_alloc_resources(device_t dev, struct fdc_data *fdc)
|
|||
for (rid = 0; ; rid++) {
|
||||
newrid = rid;
|
||||
res = bus_alloc_resource(dev, SYS_RES_IOPORT, &newrid,
|
||||
0ul, ~0ul, nport, RF_ACTIVE);
|
||||
0ul, ~0ul, rid == 0 ? nport : 1, RF_ACTIVE);
|
||||
if (res == NULL)
|
||||
break;
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue