Go to file
pgoyette c1df4ef16b In module_do_load(), consolidate checking for a pre-existing module,
and return a single error value EEXIST.  When making a recursive
call (to load required modules), treat a pre-existing module as
success.

Without this change, when a module was loaded by specific request
(as opposed to being loaded as a requirement of some other module),
we would always load the module from the file-system, and then
after making various sanity/compatability checks we would destroy
the new copy if there was a pre-existing copy.

Fixes PR kern/40764

XXX Note that if the module exists, we bypass all of the various
XXX "compatability" checks, including whether or not the existing
XXX module is of any particular class!  (In the previous code, we
XXX checked to see if the newly-loaded copy had the correct class,
XXX but not the pre-existing copy, which could have been loaded
XXX from a different path/filename.)
2016-02-06 22:48:07 +00:00
bin PR/50747: David Binderman: check bounds before dereference. 2016-02-03 05:26:16 +00:00
common Needs prop_array.h to compile. 2016-01-22 23:03:46 +00:00
compat remove the xfree86 reachover makefiles and the vast majority of 2015-07-23 08:03:24 +00:00
crypto - Avoid uninitialized variable usage in do_nologin() when HAVE_LOGIN_CAP 2016-02-04 15:04:11 +00:00
dist/pf Fix obviously broken condition. 2015-08-28 12:17:41 +00:00
distrib Add capability to attach external memory to files on rumpfs. This 2016-02-02 12:22:23 +00:00
doc new openssl 2016-01-30 17:00:53 +00:00
etc Drop almost unnecessary devices for floppy to shrink sysinst.fs. 2016-01-29 18:03:16 +00:00
external No <immintrin.h> for pcc even on x86. 2016-02-06 20:23:39 +00:00
extsrc
games PR/50411: Rin Okuyama: fix two bugs: 2015-11-06 19:53:37 +00:00
gnu has moved to external/gpl3 2016-01-16 18:41:12 +00:00
include disable dso protected to work around binutils bug 2016-01-29 15:18:33 +00:00
lib Avoid shadowing global. 2016-02-06 19:33:07 +00:00
libexec we don't need <sys/mbuf.h> 2016-01-24 01:56:04 +00:00
regress moved to tests/net/in_cksum. 2015-01-05 22:39:29 +00:00
rescue Remove rtsol(8) and rtsold(8) as their functionality is in dhcpcd(8). 2014-09-11 13:10:03 +00:00
sbin fix usage message 2016-02-06 10:35:58 +00:00
share Fix some awkward language in manpage and code comments. 2016-02-06 20:20:18 +00:00
sys In module_do_load(), consolidate checking for a pre-existing module, 2016-02-06 22:48:07 +00:00
tests Add tests for a gateway not on the local subnet 2016-01-29 04:15:46 +00:00
tools silent when we don't have -ldl 2016-02-01 14:18:16 +00:00
usr.bin use sizeof() and array notation. 2016-02-06 21:23:09 +00:00
usr.sbin Split case folding table into separate source file and add full 2016-02-06 10:40:58 +00:00
build.sh Make evbarm64 (little endian) the default for aarch64. 2015-06-27 06:00:28 +00:00
BUILDING Document MKREPRO_TIMESTAMP. 2016-01-29 13:51:13 +00:00
Makefile fix direct reference to texinfo, bleh 2016-01-14 02:51:25 +00:00
Makefile.inc
UPDATING Note that update builds are broken if MKDTRACE got enabled for your 2016-01-25 09:24:29 +00:00