Module Name: src Committed By: pgoyette Date: Thu Sep 6 00:10:55 UTC 2018
Modified Files: src/sys/kern [pgoyette-compat]: kern_module.c Log Message: One more time - let's get this right! To generate a diff of this commit: cvs rdiff -u -r1.130.2.19 -r1.130.2.20 src/sys/kern/kern_module.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/kern/kern_module.c diff -u src/sys/kern/kern_module.c:1.130.2.19 src/sys/kern/kern_module.c:1.130.2.20 --- src/sys/kern/kern_module.c:1.130.2.19 Wed Sep 5 22:04:51 2018 +++ src/sys/kern/kern_module.c Thu Sep 6 00:10:55 2018 @@ -1,4 +1,4 @@ -/* $NetBSD: kern_module.c,v 1.130.2.19 2018/09/05 22:04:51 pgoyette Exp $ */ +/* $NetBSD: kern_module.c,v 1.130.2.20 2018/09/06 00:10:55 pgoyette Exp $ */ /*- * Copyright (c) 2008 The NetBSD Foundation, Inc. @@ -34,7 +34,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: kern_module.c,v 1.130.2.19 2018/09/05 22:04:51 pgoyette Exp $"); +__KERNEL_RCSID(0, "$NetBSD: kern_module.c,v 1.130.2.20 2018/09/06 00:10:55 pgoyette Exp $"); #define _MODULE_INTERNAL @@ -1402,9 +1402,6 @@ module_do_unload(const char *name, bool if (mod->mod_kobj != NULL) { kobj_unload(mod->mod_kobj); } - if (mod->mod_required) - kmem_free(mod->mod_required, mod->mod_arequired * - sizeof(module_t)); if (mod->mod_source == MODULE_SOURCE_KERNEL) { if (mod->mod_required != NULL) { /*