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/f1fad141dae2
branches:  trunk
changeset: 982245:f1fad141dae2
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 9c005dbfe092 -r f1fad141dae2 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