projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9497d73
)
livepatch: match return value to function signature
author
Nicholas Mc Guire
<hofrat@osadl.org>
Mon, 11 May 2015 05:52:29 +0000
(07:52 +0200)
committer
Jiri Kosina
<jkosina@suse.cz>
Mon, 11 May 2015 21:43:52 +0000
(23:43 +0200)
klp_initialized() should return bool but is actually returning
struct kobject * - convert it to a boolean explicitly.
Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
Reviewed-by: Jiri Slaby <jslaby@suse.cz
Acked-by: Josh Poimboeuf <jpoimboe@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
kernel/livepatch/core.c
patch
|
blob
|
blame
|
history
diff --git
a/kernel/livepatch/core.c
b/kernel/livepatch/core.c
index 284e2691e38073d52b00d46010e654e6ff7de9bf..c5e631cd151b896845c2b2a770a435b934fba0dd 100644
(file)
--- a/
kernel/livepatch/core.c
+++ b/
kernel/livepatch/core.c
@@
-128,7
+128,7
@@
static bool klp_is_patch_registered(struct klp_patch *patch)
static bool klp_initialized(void)
{
- return klp_root_kobj;
+ return
!!
klp_root_kobj;
}
struct klp_find_arg {