summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorAlexandre Ratchov <ratchov@cvs.openbsd.org>2009-03-04 17:54:15 +0000
committerAlexandre Ratchov <ratchov@cvs.openbsd.org>2009-03-04 17:54:15 +0000
commit48c8a212672c4e9915090f6a6b5c4eb236c74a68 (patch)
treedca875f8b153f45f32039639c20c7917f01d5449 /sys/dev
parent53c7f4f82e2f36412f67bec78e8da50852418afb (diff)
don't bus_space_unmap() sc->mt_ioh with the wrong bus tag
from Alexandr Shadchin <ShadchinAV(at)mail.ru>, Thanks!
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/envy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/envy.c b/sys/dev/pci/envy.c
index 4d052f61d36..cb08f2ae8aa 100644
--- a/sys/dev/pci/envy.c
+++ b/sys/dev/pci/envy.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: envy.c,v 1.13 2009/01/17 18:29:55 ratchov Exp $ */
+/* $OpenBSD: envy.c,v 1.14 2009/03/04 17:54:14 ratchov Exp $ */
/*
* Copyright (c) 2007 Alexandre Ratchov <alex@caoua.org>
*
@@ -555,7 +555,7 @@ envydetach(struct device *self, int flags)
bus_space_unmap(sc->ccs_iot, sc->ccs_ioh, sc->ccs_iosz);
}
if (sc->mt_iosz) {
- bus_space_unmap(sc->ccs_iot, sc->mt_ioh, sc->mt_iosz);
+ bus_space_unmap(sc->mt_iot, sc->mt_ioh, sc->mt_iosz);
}
return 0;
}