projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
905dd70
)
module: Fix a comment above strong_try_module_get()
author
Miroslav Benes
<mbenes@suse.cz>
Wed, 16 Nov 2016 15:45:48 +0000
(16:45 +0100)
committer
Jessica Yu
<jeyu@redhat.com>
Sat, 26 Nov 2016 19:18:03 +0000
(11:18 -0800)
The comment above strong_try_module_get() function is not true anymore.
Return values changed with commit
c9a3ba55bb5d
("module: wait for
dependent modules doing init.").
Signed-off-by: Miroslav Benes <mbenes@suse.cz>
Link:
http://lkml.kernel.org/r/alpine.LNX.2.00.1611161635330.12580@pobox.suse.cz
[jeyu@redhat.com: style fixes to make checkpatch.pl happy]
Signed-off-by: Jessica Yu <jeyu@redhat.com>
kernel/module.c
patch
|
blob
|
blame
|
history
diff --git
a/kernel/module.c
b/kernel/module.c
index 927a67e30855fe4fadd4e481c579088a7792a113..6281c70683d3c5d537d39016b1192c9b4e2035ce 100644
(file)
--- a/
kernel/module.c
+++ b/
kernel/module.c
@@
-313,8
+313,11
@@
struct load_info {
} index;
};
-/* We require a truly strong try_module_get(): 0 means failure due to
- ongoing or failed initialization etc. */
+/*
+ * We require a truly strong try_module_get(): 0 means success.
+ * Otherwise an error is returned due to ongoing or failed
+ * initialization etc.
+ */
static inline int strong_try_module_get(struct module *mod)
{
BUG_ON(mod && mod->state == MODULE_STATE_UNFORMED);