mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-14 14:55:41 +00:00
In sys/dev/if_ndis/if_ndis_pccard.c, fix a bug where a garbage rid was
passed to resource_list_add(). The rid that was just returned by bus_alloc_resource_any() should have been used instead. Reviewed by: jhb MFC after: 1 week
This commit is contained in:
parent
debfd27f8e
commit
54a55725a3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=229401
@ -207,7 +207,7 @@ ndis_attach_pccard(dev)
|
||||
goto fail;
|
||||
}
|
||||
sc->ndis_rescnt++;
|
||||
resource_list_add(&sc->ndis_rl, SYS_RES_IOPORT, rid,
|
||||
resource_list_add(&sc->ndis_rl, SYS_RES_IOPORT, sc->ndis_io_rid,
|
||||
rman_get_start(sc->ndis_res_io), rman_get_end(sc->ndis_res_io),
|
||||
rman_get_size(sc->ndis_res_io));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user