summaryrefslogtreecommitdiff
path: root/sys/arch/mvme68k
diff options
context:
space:
mode:
authorAriane van der Steldt <ariane@cvs.openbsd.org>2011-06-23 20:44:40 +0000
committerAriane van der Steldt <ariane@cvs.openbsd.org>2011-06-23 20:44:40 +0000
commit0f28a042eb41d7327f657e3ee9d5b5ebb45b4ae9 (patch)
treea61d9cd4563d488aa9cbe1e1373ba909d2215ccf /sys/arch/mvme68k
parent7d92efd246de448e6fb91f652014db2db9853704 (diff)
Fix the error path in bus_dmamem_map.
As discussed on icb: remove the comment, remove pmap_remove (uvm_km_free does that for us). ok oga@, deraadt@
Diffstat (limited to 'sys/arch/mvme68k')
-rw-r--r--sys/arch/mvme68k/mvme68k/bus_dma.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/arch/mvme68k/mvme68k/bus_dma.c b/sys/arch/mvme68k/mvme68k/bus_dma.c
index c556f77ddbf..b458ad0c797 100644
--- a/sys/arch/mvme68k/mvme68k/bus_dma.c
+++ b/sys/arch/mvme68k/mvme68k/bus_dma.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bus_dma.c,v 1.8 2010/12/26 15:40:59 miod Exp $ */
+/* $OpenBSD: bus_dma.c,v 1.9 2011/06/23 20:44:39 ariane Exp $ */
/* $NetBSD: bus_dma.c,v 1.2 2001/06/10 02:31:25 briggs Exp $ */
/*-
@@ -541,12 +541,8 @@ bus_dmamem_map(t, segs, nsegs, size, kvap, flags)
VM_PROT_READ | VM_PROT_WRITE, VM_PROT_READ |
VM_PROT_WRITE | PMAP_WIRED | PMAP_CANFAIL);
if (error) {
- /*
- * Clean up after ourselves.
- * XXX uvm_wait on WAITOK
- */
pmap_update(pmap_kernel());
- uvm_km_free(kernel_map, va, ssize);
+ uvm_km_free(kernel_map, sva, ssize);
return (error);
}
}