Commit 2c8fd268 authored by Jia Zhang's avatar Jia Zhang Committed by Jessica Yu

module: Do not access sig_enforce directly

Call is_module_sig_enforced() instead.
Signed-off-by: default avatarJia Zhang <zhang.jia@linux.alibaba.com>
Signed-off-by: default avatarJessica Yu <jeyu@kernel.org>
parent 60cc43fc
......@@ -2785,7 +2785,7 @@ static int module_sig_check(struct load_info *info, int flags)
}
/* Not having a signature is only an error if we're strict. */
if (err == -ENOKEY && !sig_enforce)
if (err == -ENOKEY && !is_module_sig_enforced())
err = 0;
return err;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment