lib-add-on-off-support-to-kstrtobool fix
PATCH 1/1 lib-add-on-off-support-to-kstrtobool fix
Accidentally dropped description update when shuffling strtobool around.
Suggested-by Andy Shevchenko <[email protected]>
Signed-off-by Kees Cook <[email protected]>
--- lib/kstrtox.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
lib/kstrtox.c +3 -3
@@ -327,9 +327,9 @@ EXPORT_SYMBOL(kstrtos8);* @base: ignored * @res: result * -* This routine returns 0 iff the first character is one of 'Yy1Nn0'. -* Otherwise it will return -EINVAL. Value pointed to by res is -* updated upon finding a match. +* This routine returns 0 iff the first character is one of 'Yy1Nn0', or +* [oO][NnFf] for "on" and "off". Otherwise it will return -EINVAL. Value +* pointed to by res is updated upon finding a match. */ int kstrtobool (const char *s,unsigned int base,bool *res) {
Signature · 6 lines
2.6.3 -- Kees Cook Chrome OS & Brillo Security