1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-19 10:53:58 +00:00

Calling rman_get_start() after bus_release_resource() is evil.

It became fatal after a recent "struct resource" split change.
This commit is contained in:
Ruslan Ermilov 2005-09-27 13:33:46 +00:00
parent 819766797e
commit 360d00a0b2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=150616

View File

@ -360,8 +360,8 @@ cardbus_alloc_resources(device_t cbdev, device_t child)
bus_release_resource(cbdev, SYS_RES_IRQ, rid, res);
resource_list_add(&dinfo->pci.resources, SYS_RES_IRQ, rid, start, end,
1);
dinfo->pci.cfg.intline = rman_get_start(res);
pci_write_config(child, PCIR_INTLINE, rman_get_start(res), 1);
dinfo->pci.cfg.intline = start;
pci_write_config(child, PCIR_INTLINE, start, 1);
free(barlist, M_DEVBUF);
return (0);