summaryrefslogtreecommitdiffstats
path: root/sys/pci/if_sis.c
diff options
context:
space:
mode:
authorwpaul <wpaul@FreeBSD.org>2000-11-02 00:00:30 +0000
committerwpaul <wpaul@FreeBSD.org>2000-11-02 00:00:30 +0000
commit68862a0a68c46858a2e31a712545ad97db38521f (patch)
treeb4eb6ef7456051f4b0a334f8c9a119a67d3bb0b5 /sys/pci/if_sis.c
parentd454f22bf366c405d02a6025b65daf8e87e68107 (diff)
downloadFreeBSD-src-68862a0a68c46858a2e31a712545ad97db38521f.zip
FreeBSD-src-68862a0a68c46858a2e31a712545ad97db38521f.tar.gz
Fix a couple of cases where I tried to release the I/O space resource twice
(once as as an I/O space resource and once as an IRQ resource). There was a problem with this in if_rl too, which is how I found it.
Diffstat (limited to 'sys/pci/if_sis.c')
-rw-r--r--sys/pci/if_sis.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/pci/if_sis.c b/sys/pci/if_sis.c
index 5de1eb4..d59c99c 100644
--- a/sys/pci/if_sis.c
+++ b/sys/pci/if_sis.c
@@ -725,7 +725,7 @@ static int sis_attach(dev)
sis_intr, sc, &sc->sis_intrhand);
if (error) {
- bus_release_resource(dev, SYS_RES_IRQ, 0, sc->sis_res);
+ bus_release_resource(dev, SYS_RES_IRQ, 0, sc->sis_irq);
bus_release_resource(dev, SIS_RES, SIS_RID, sc->sis_res);
printf("sis%d: couldn't set up irq\n", unit);
goto fail;
OpenPOWER on IntegriCloud