Skip to content

Commit 394c73d

Browse files
committed
Merge tag 'modules-for-v4.16-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/jeyu/linux
Pull modules fix from Jessica Yu: "Propagate error in modules_open() to avoid possible later NULL dereference if seq_open() had failed" * tag 'modules-for-v4.16-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/jeyu/linux: module: propagate error in modules_open()
2 parents c4f4d2f + 3f553b3 commit 394c73d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/module.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4228,7 +4228,7 @@ static int modules_open(struct inode *inode, struct file *file)
42284228
m->private = kallsyms_show_value() ? NULL : (void *)8ul;
42294229
}
42304230

4231-
return 0;
4231+
return err;
42324232
}
42334233

42344234
static const struct file_operations proc_modules_operations = {

0 commit comments

Comments
 (0)