diff --git a/kernel/module.c b/kernel/module.c index 4d03526b7927..125b1cedc65d 100644 --- a/kernel/module.c +++ b/kernel/module.c @@ -1324,7 +1324,7 @@ static int check_version(const struct load_info *info, bad_version: pr_warn("%s: disagrees about version of symbol %s\n", info->name, symname); - return 1; + return 0; } static inline int check_modstruct_version(const struct load_info *info, @@ -3040,7 +3040,7 @@ static int check_modinfo(struct module *mod, struct load_info *info, int flags) modmagic = NULL; /* This is allowed: modprobe --force will invalidate it. */ - /*if (!modmagic) { + if (!modmagic) { err = try_to_force_load(mod, "bad vermagic"); if (err) return err; @@ -3048,7 +3048,7 @@ static int check_modinfo(struct module *mod, struct load_info *info, int flags) pr_err("%s: version magic '%s' should be '%s'\n", info->name, modmagic, vermagic); return -ENOEXEC; - }*/ + } if (!get_modinfo(info, "intree")) { if (!test_taint(TAINT_OOT_MODULE))