git.codelabs.ch
/
muen
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
c4f4d2f
)
Merge tag 'modules-for-v4.16-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git...
author
Linus Torvalds
<torvalds@linux-foundation.org>
Thu, 22 Mar 2018 23:13:49 +0000
(16:13 -0700)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Thu, 22 Mar 2018 23:13:49 +0000
(16:13 -0700)
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()
kernel/module.c
patch
|
blob
|
history
diff --git
a/kernel/module.c
b/kernel/module.c
index ad2d420024f6d01086f07b47e60fd1fbde0ff1dc..e42764acedb4cd35ccb81d396b1391510b52db25 100644
(file)
--- a/
kernel/module.c
+++ b/
kernel/module.c
@@
-4228,7
+4228,7
@@
static int modules_open(struct inode *inode, struct file *file)
m->private = kallsyms_show_value() ? NULL : (void *)8ul;
}
- return
0
;
+ return
err
;
}
static const struct file_operations proc_modules_operations = {