summaryrefslogtreecommitdiffstats
path: root/sys/netgraph
diff options
context:
space:
mode:
authormux <mux@FreeBSD.org>2002-08-02 20:56:07 +0000
committermux <mux@FreeBSD.org>2002-08-02 20:56:07 +0000
commita7c11c91eb4e5af89d477fbb8bfd9b7a5d42eaa7 (patch)
tree97627424d15db9766ee1cd606cc49762644c096f /sys/netgraph
parent1bd16d78e2a55104eb99d69e442460fe637caab9 (diff)
downloadFreeBSD-src-a7c11c91eb4e5af89d477fbb8bfd9b7a5d42eaa7.zip
FreeBSD-src-a7c11c91eb4e5af89d477fbb8bfd9b7a5d42eaa7.tar.gz
Make the consumers of the linker_load_file() function use
linker_load_module() instead. This fixes a bug where the kernel was unable to properly locate and load a kernel module in vfs_mount() (and probably in the netgraph code as well since it was using the same function). This is because the linker_load_file() does not properly search the module path. Problem found by: peter Reviewed by: peter Thanks to: peter
Diffstat (limited to 'sys/netgraph')
-rw-r--r--sys/netgraph/ng_base.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netgraph/ng_base.c b/sys/netgraph/ng_base.c
index ccab434..1acc6ad 100644
--- a/sys/netgraph/ng_base.c
+++ b/sys/netgraph/ng_base.c
@@ -556,7 +556,7 @@ ng_make_node(const char *typename, node_p *nodepp)
/* Not found, try to load it as a loadable module */
snprintf(filename, sizeof(filename), "ng_%s", typename);
- error = linker_load_file(filename, &lf);
+ error = linker_load_module(NULL, filename, NULL, NULL, &lf);
if (error != 0)
return (error);
lf->userrefs++; /* pretend loaded by the syscall */
OpenPOWER on IntegriCloud