diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2009-12-08 21:23:19 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2009-12-08 21:23:19 +0000 |
commit | be46570cfc13083bc82225961d91c9b7ae459503 (patch) | |
tree | ccc9e4775d8ae604890ab94bfb1501e8657627e1 /sys | |
parent | 71b4cf72a22130be661d966e74219afd11b9cae2 (diff) |
Passing kva + size as the third argument to uvm_km_free() is a bad idea. It
unmaps quite a bit more than intended, which causes weird things like
watchdog resets.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/sparc64/sparc64/machdep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/sparc64/sparc64/machdep.c b/sys/arch/sparc64/sparc64/machdep.c index 31454c8661d..86a092a89c2 100644 --- a/sys/arch/sparc64/sparc64/machdep.c +++ b/sys/arch/sparc64/sparc64/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.121 2009/08/11 19:17:17 miod Exp $ */ +/* $OpenBSD: machdep.c,v 1.122 2009/12/08 21:23:18 kettenis Exp $ */ /* $NetBSD: machdep.c,v 1.108 2001/07/24 19:30:14 eeh Exp $ */ /*- @@ -1530,7 +1530,7 @@ _bus_dmamem_unmap(t, t0, kva, size) #endif size = round_page(size); - uvm_km_free(kernel_map, (vaddr_t)kva, (vaddr_t)kva + size); + uvm_km_free(kernel_map, (vaddr_t)kva, size); } /* |