aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/livepatch.h
diff options
context:
space:
mode:
authorJosh Poimboeuf <jpoimboe@redhat.com>2017-02-13 19:42:38 -0600
committerJiri Kosina <jkosina@suse.cz>2017-03-08 09:23:52 +0100
commit68ae4b2b687c3da59ca1d762646ddece4ea1c438 (patch)
tree6e0ebffd92c74bf41a8c0e587456cfd67db57347 /include/linux/livepatch.h
parentlivepatch: move patching functions into patch.c (diff)
downloadwireguard-linux-68ae4b2b687c3da59ca1d762646ddece4ea1c438.tar.xz
wireguard-linux-68ae4b2b687c3da59ca1d762646ddece4ea1c438.zip
livepatch: use kstrtobool() in enabled_store()
The sysfs enabled value is a boolean, so kstrtobool() is a better fit for parsing the input string since it does the range checking for us. Suggested-by: Petr Mladek <pmladek@suse.com> Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com> Acked-by: Miroslav Benes <mbenes@suse.cz> Reviewed-by: Petr Mladek <pmladek@suse.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'include/linux/livepatch.h')
0 files changed, 0 insertions, 0 deletions