summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;