summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2010-06-18 23:47:25 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2010-06-18 23:47:25 +0000
commit8040ac3a4ae22c61ae086b3ae636515d770814f3 (patch)
treef960aa35fcaa68c1178781660f9768900b906023 /sys
parent68c3f29d3f1e2e4f9db496df0daced5ff8f74680 (diff)
dvma_free() the exact size passed to dvma_malloc().
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/sparc/dev/cs4231.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/sparc/dev/cs4231.c b/sys/arch/sparc/dev/cs4231.c
index b055edb650b..bb5671f33e6 100644
--- a/sys/arch/sparc/dev/cs4231.c
+++ b/sys/arch/sparc/dev/cs4231.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cs4231.c,v 1.27 2008/04/21 00:32:42 jakemsr Exp $ */
+/* $OpenBSD: cs4231.c,v 1.28 2010/06/18 23:47:24 miod Exp $ */
/*
* Copyright (c) 1999 Jason L. Wright (jason@thought.net)
@@ -1478,7 +1478,7 @@ cs4231_free(addr, ptr, pool)
for (pp = &sc->sc_dmas; (p = *pp) != NULL; pp = &(*pp)->next) {
if (p->addr != ptr)
continue;
- dvma_free(p->addr_dva, 16*1024, &p->addr);
+ dvma_free(p->addr_dva, p->size, &p->addr);
*pp = p->next;
free(p, pool);
return;