From: Kees Cook Date: Thu, 17 Mar 2016 21:22:50 +0000 (-0700) Subject: lib: move strtobool() to kstrtobool() X-Git-Tag: firefly_0821_release~176^2~4^2~22^2~58 X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=e0d61779d3fe56bf139c6e4c8381d9dd3eddc1f0;hp=e0d61779d3fe56bf139c6e4c8381d9dd3eddc1f0;p=firefly-linux-kernel-4.4.55.git lib: move strtobool() to kstrtobool() commit ef951599074ba4fad2d0efa0a977129b41e6d203 upstream. Create the kstrtobool_from_user() helper and move strtobool() logic into the new kstrtobool() (matching all the other kstrto* functions). Provides an inline wrapper for existing strtobool() callers. Signed-off-by: Kees Cook Cc: Joe Perches Cc: Andy Shevchenko Cc: Rasmus Villemoes Cc: Daniel Borkmann Cc: Amitkumar Karwar Cc: Nishant Sarmukadam Cc: Kalle Valo Cc: Steve French Cc: Michael Ellerman Cc: Heiko Carstens Cc: Martin Schwidefsky Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds Signed-off-by: Greg Kroah-Hartman ---