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/mips Call kmem_free() with th...



details:   https://anonhg.NetBSD.org/src/rev/9076372f4b78
branches:  trunk
changeset: 954356:9076372f4b78
user:      simonb <simonb%NetBSD.org@localhost>
date:      Tue Apr 06 08:19:15 2021 +0000

description:
Call kmem_free() with the size of the thing we are freeing.  Fixes panic
when unloading the ktrace module on MIPS.

diffstat:

 external/cddl/osnet/dev/dtrace/mips/dtrace_subr.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 8b86a9708602 -r 9076372f4b78 external/cddl/osnet/dev/dtrace/mips/dtrace_subr.c
--- a/external/cddl/osnet/dev/dtrace/mips/dtrace_subr.c Tue Apr 06 07:57:03 2021 +0000
+++ b/external/cddl/osnet/dev/dtrace/mips/dtrace_subr.c Tue Apr 06 08:19:15 2021 +0000
@@ -121,7 +121,7 @@
                prev->dtih_next = hdlr->dtih_next;
        }
 
-       kmem_free(hdlr, 0);
+       kmem_free(hdlr, sizeof (dtrace_invop_hdlr_t));
 }
 
 /*ARGSUSED*/



Home | Main Index | Thread Index | Old Index