Module Name: src Committed By: pgoyette Date: Wed Sep 5 09:42:58 UTC 2018
Modified Files: src/sys/kern [pgoyette-compat]: kern_module.c Log Message: ooppss - don't forget the structure pointer! To generate a diff of this commit: cvs rdiff -u -r1.130.2.17 -r1.130.2.18 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.17 src/sys/kern/kern_module.c:1.130.2.18 --- src/sys/kern/kern_module.c:1.130.2.17 Wed Sep 5 09:26:59 2018 +++ src/sys/kern/kern_module.c Wed Sep 5 09:42:57 2018 @@ -1,4 +1,4 @@ -/* $NetBSD: kern_module.c,v 1.130.2.17 2018/09/05 09:26:59 pgoyette Exp $ */ +/* $NetBSD: kern_module.c,v 1.130.2.18 2018/09/05 09:42:57 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.17 2018/09/05 09:26:59 pgoyette Exp $"); +__KERNEL_RCSID(0, "$NetBSD: kern_module.c,v 1.130.2.18 2018/09/05 09:42:57 pgoyette Exp $"); #define _MODULE_INTERNAL @@ -1406,7 +1406,7 @@ module_do_unload(const char *name, bool kmem_free(mod->mod_required, mod->mod_arequired * sizeof(module_t)); if (mod->mod_source == MODULE_SOURCE_KERNEL) { - if (mod_arequired != 0) { + if (mod->mod_arequired != 0) { /* * release "required" resources - will be re-parsed * if the module is re-enabled