Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/cddl/osnet/dev/dtrace fix a kmem_alloc/free size mi...
details: https://anonhg.NetBSD.org/src/rev/c1291cef2ab5
branches: trunk
changeset: 767652:c1291cef2ab5
user: yamt <yamt%NetBSD.org@localhost>
date: Tue Jul 26 12:26:33 2011 +0000
description:
fix a kmem_alloc/free size mismatch
diffstat:
external/cddl/osnet/dev/dtrace/dtrace_unload.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (19 lines):
diff -r c13f403f8d42 -r c1291cef2ab5 external/cddl/osnet/dev/dtrace/dtrace_unload.c
--- a/external/cddl/osnet/dev/dtrace/dtrace_unload.c Tue Jul 26 12:24:16 2011 +0000
+++ b/external/cddl/osnet/dev/dtrace/dtrace_unload.c Tue Jul 26 12:26:33 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dtrace_unload.c,v 1.4 2010/04/23 16:44:10 ahoka Exp $ */
+/* $NetBSD: dtrace_unload.c,v 1.5 2011/07/26 12:26:33 yamt Exp $ */
/*
* CDDL HEADER START
@@ -92,7 +92,8 @@
vmem_destroy(dtrace_arena);
if (dtrace_toxrange != NULL) {
- kmem_free(dtrace_toxrange, sizeof (dtrace_toxrange_t *));
+ kmem_free(dtrace_toxrange,
+ dtrace_toxranges_max * sizeof (dtrace_toxrange_t));
dtrace_toxrange = NULL;
dtrace_toxranges = 0;
dtrace_toxranges_max = 0;
Home |
Main Index |
Thread Index |
Old Index