Skip to contentSkip to conversation

lib-add-on-off-support-to-kstrtobool fix

PATCH New Kees Cook 1 participant 1 message Feb 4, 2016 Library code

lore
Share & tools
lore

Kees Cook

author
#0 lore raw

PATCH 1/1 lib-add-on-off-support-to-kstrtobool fix

Accidentally dropped description update when shuffling strtobool around.

---
 lib/kstrtox.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
lib/kstrtox.c +3 -3
index 09e83a19a96d..4765ed9a0690 100644
@@ -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