Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1327329
| From | Kees Cook <keescook@chromium.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH] lib-add-on-off-support-to-kstrtobool fix |
| Date | 2016-02-05 00:20 +0100 |
| Message-ID | <qYBlT-lJ-1@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
Accidentally dropped description update when shuffling strtobool around.
Suggested-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
---
lib/kstrtox.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib/kstrtox.c b/lib/kstrtox.c
index 09e83a19a96d..4765ed9a0690 100644
--- a/lib/kstrtox.c
+++ b/lib/kstrtox.c
@@ -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)
{
--
2.6.3
--
Kees Cook
Chrome OS & Brillo Security
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[PATCH] lib-add-on-off-support-to-kstrtobool fix Kees Cook <keescook@chromium.org> - 2016-02-05 00:20 +0100
csiph-web