提交 394c73d3 编写于 作者: L Linus Torvalds

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()
...@@ -4228,7 +4228,7 @@ static int modules_open(struct inode *inode, struct file *file) ...@@ -4228,7 +4228,7 @@ static int modules_open(struct inode *inode, struct file *file)
m->private = kallsyms_show_value() ? NULL : (void *)8ul; m->private = kallsyms_show_value() ? NULL : (void *)8ul;
} }
return 0; return err;
} }
static const struct file_operations proc_modules_operations = { static const struct file_operations proc_modules_operations = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册