mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
livepatch: fix uninitialized return value
Fix a potentially uninitialized return value in klp_enable_func(). Signed-off-by: Josh Poimboeuf <[email protected]> Reviewed-by: Miroslav Benes <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
This commit is contained in:
1 parent
3c33f5b99d
commit
dbed7ddab9
1 file changed
+1
-1
@@ -410,7 +410,7 @@ static int klp_enable_func(struct klp_func *func)
|
||||
|
||||
func->state = KLP_ENABLED;
|
||||
|
||||
return ret;
|
||||
return 0;
|
||||
|
||||
err:
|
||||
list_del_rcu(&func->stack_node);
|
||||
|
||||
Reference in new issue
Block a user