aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/livepatch
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/livepatch')
-rw-r--r--kernel/livepatch/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/livepatch/core.c b/kernel/livepatch/core.c
index 284e2691e380..c5e631cd151b 100644
--- a/kernel/livepatch/core.c
+++ b/kernel/livepatch/core.c
@@ -128,7 +128,7 @@ static bool klp_is_patch_registered(struct klp_patch *patch)
128 128
129static bool klp_initialized(void) 129static bool klp_initialized(void)
130{ 130{
131 return klp_root_kobj; 131 return !!klp_root_kobj;
132} 132}
133 133
134struct klp_find_arg { 134struct klp_find_arg {