diff options
author | jhb <jhb@FreeBSD.org> | 2012-06-20 21:06:51 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2012-06-20 21:06:51 +0000 |
commit | eb50c82f35336be7dff27205eebac36288ccc0e2 (patch) | |
tree | 6fb34f9041097d49ffd229287bf3198bf463e00b /sys/boot/common/load_elf_obj.c | |
parent | 9026ef5736c1ef187623cff58736e5801aba8e67 (diff) | |
download | FreeBSD-src-eb50c82f35336be7dff27205eebac36288ccc0e2.zip FreeBSD-src-eb50c82f35336be7dff27205eebac36288ccc0e2.tar.gz |
Don't return an error if a kld does not contain any modules (e.g. a
kld that only contained a sysctl). The kernel linker allows such
modules, so the boot loader should not reject them.
MFC after: 2 weeks
Diffstat (limited to 'sys/boot/common/load_elf_obj.c')
-rw-r--r-- | sys/boot/common/load_elf_obj.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/boot/common/load_elf_obj.c b/sys/boot/common/load_elf_obj.c index 54d9b10..2c8e184 100644 --- a/sys/boot/common/load_elf_obj.c +++ b/sys/boot/common/load_elf_obj.c @@ -369,7 +369,7 @@ __elfN(obj_parse_modmetadata)(struct preloaded_file *fp, elf_file_t ef) if (__elfN(obj_lookup_set)(fp, ef, "modmetadata_set", &p, &p_stop, &modcnt) != 0) - return ENOENT; + return 0; modcnt = 0; while (p < p_stop) { |