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/704ffee49c15
branches:  trunk
changeset: 961014:704ffee49c15
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 d01253cfd734 -r 704ffee49c15 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