aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/subr_module.c
diff options
context:
space:
mode:
authorRoger Pau Monné <royger@FreeBSD.org>2015-08-21 15:57:57 +0000
committerRoger Pau Monné <royger@FreeBSD.org>2015-08-21 15:57:57 +0000
commite8234cfef67314987bb56bef07a4fbeb86a8e5d9 (patch)
tree408fe746aea9ea0be100e3fa8b22d9fe7a4ac635 /sys/kern/subr_module.c
parentf8f1bb83f78e8a2b7f4f10432882c39bbd7952fb (diff)
Notes
Diffstat (limited to 'sys/kern/subr_module.c')
-rw-r--r--sys/kern/subr_module.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/kern/subr_module.c b/sys/kern/subr_module.c
index a93c80e652ab0..5b0568f9ee5ec 100644
--- a/sys/kern/subr_module.c
+++ b/sys/kern/subr_module.c
@@ -160,6 +160,9 @@ preload_search_info(caddr_t mod, int inf)
uint32_t type = 0;
int next;
+ if (mod == NULL)
+ return (NULL);
+
curp = mod;
for (;;) {
hdr = (uint32_t *)curp;