Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758168AbcBDXLX (ORCPT ); Thu, 4 Feb 2016 18:11:23 -0500 Received: from mail-pa0-f46.google.com ([209.85.220.46]:33470 "EHLO mail-pa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756956AbcBDXLT (ORCPT ); Thu, 4 Feb 2016 18:11:19 -0500 Date: Thu, 4 Feb 2016 15:11:17 -0800 From: Kees Cook To: Andrew Morton Cc: Andy Shevchenko , linux-kernel@vger.kernel.org Subject: [PATCH] lib-add-on-off-support-to-kstrtobool fix Message-ID: <20160204231117.GA7141@www.outflux.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Accidentally dropped description update when shuffling strtobool around. Suggested-by: Andy Shevchenko Signed-off-by: Kees Cook --- 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