Received: by 10.223.185.116 with SMTP id b49csp2249037wrg; Mon, 12 Feb 2018 06:51:13 -0800 (PST) X-Google-Smtp-Source: AH8x224QDuJRnuvnykYVAfz+DKYBdhlsIYQUNxv8HtVAy1+acsTFXqOx1EPN3MsVRnEs62hTKtx1 X-Received: by 2002:a17:902:3fa5:: with SMTP id a34-v6mr11423375pld.326.1518447073824; Mon, 12 Feb 2018 06:51:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518447073; cv=none; d=google.com; s=arc-20160816; b=eZyCU4iurYPzTVX58lbgj9vI7zrX4QTV4z8mkwAlnYasJnyYoyZVNKB9WFvWrdHBcv xCsqmVIsD2L3wNYyn7vvujI+KrC16i8wo6c7DUgteY2C5NpicBgOK2bWply4mCaRAonn i8s2sHqUvtcChCsntZnRdBOgVsYZyfb4guTsYkYsZdIhuC0WeTsaIq7cQiI4cB/xgMng qzsiuYwRlcYIygGHZT203TuBHerSgn54/FispA28QTMuAOMeRKAE/vWD+6kZV3rl9nB6 iXYt5HfT79huBt2h4JXdDzZXEm5r9dht6U4+vKT+Nxh9XBNWf9/19SUwHcypm4F9dv84 s3cA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=eZRs6DC3uth+2xi1SGfkd/QAG50wEdC0cIEEFCltQQs=; b=aL8gkPgA9N+gqCuXVBSEFTsEDX6fTXiy6+5iHkGcNAFGL5CPxiu14ksGACJ9dcD1Lz yadm9pG4urJxh7rtO4Bbs2+fap2+RlsFeFtHOk/wNSGzJBKvUCOZYKuqVlW9h6xipM4I aKj5zCW56xt9Lf4rq7PbBmEp/BvfYsBKKS0dPKPIc+1Hpz10UnOFAlS4H7kZRzY36dfr rMTzX3EFDsYHKbbOsCe2e6o9fVT2E6ED1qDCO5anb6a+XNEwjl0dO2v7YzPURdrdopxf 1HIrhDZY9IZjfDLlrVWlV3zGhV75JmXx/X2Ij1/iHjj9aXwldNs2vuzlZ07hMlKSzg/m Gesg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Nb4g1seX; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e8si1017778pfi.359.2018.02.12.06.50.59; Mon, 12 Feb 2018 06:51:13 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Nb4g1seX; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935750AbeBLN4l (ORCPT + 99 others); Mon, 12 Feb 2018 08:56:41 -0500 Received: from mail-qk0-f196.google.com ([209.85.220.196]:44446 "EHLO mail-qk0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933591AbeBLN4i (ORCPT ); Mon, 12 Feb 2018 08:56:38 -0500 Received: by mail-qk0-f196.google.com with SMTP id n188so18417108qkn.11 for ; Mon, 12 Feb 2018 05:56:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=eZRs6DC3uth+2xi1SGfkd/QAG50wEdC0cIEEFCltQQs=; b=Nb4g1seXJ4n7N/UjrY7SHm6GeVejbOAElRa6rVzJldLvlbF9zi0cNobdmTk4K//Z4J 3ztGSaJOpYNWUEN9V1nrtlCmbK0h+7GXx82tguwy1ezwv4gzvbMoWB3jcgrlb0SaqZBk 3lPuA3bDEOzh44v/yb4qd6DpgwHwFSPDCWJnVW3JUlodMHPSItQXVmyCXQ+lrlLMgEFe piZ6be/Y3thq0+dwBVWMYyLnLrqa1PtrcV90tEQIDX35Cmm/5tgUcWKbGsxEvwd8plkb r/vn4qHYxcx0hCsX2Q1J9iMC5UaUMaC7Y5CsRnFipmDU8sImn6eJGCH1WhE2xXJRQjkF kbjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=eZRs6DC3uth+2xi1SGfkd/QAG50wEdC0cIEEFCltQQs=; b=q3BJQESgA8vTxdHlqvG52pmhXvnmBXlJi4eBldELDIHTeQvxrCguEfAAGnihF0R3F3 f6HWU05SHFpOBaqlSuWjJeA5eyS/ClC3EtZEoVFfDstlGr6a6E7h2gN4xM6I8VPpYmAy DNn8VaoAnMgDjoXDNVAJpklPH0wYayj0YAfflWucVZuEMKa6kbfcOWF9/0OsKWhFrkQl Dk13yM4sz/XelsS30TdBqIKE2uJ5id3NJH/HKAdKSB0hItzfpmrTO3/b/YMMT+TKTnCp TLDGurLgqbiY/7B/ivs0GahLFumYPVNPgOKN1e2m0F6jlwUOy0eptNWz6k0sDmpwuQLj Al8w== X-Gm-Message-State: APf1xPAIo9Z/Q4arL4kVTnmAY9E/HpnZWHKpEDtziuZEWtJwbZ1tNLg/ V+nq57azwBfuRsTyM2ZkTSv88F5EAeSmrzUADwui2zPH X-Received: by 10.55.105.129 with SMTP id e123mr18297343qkc.192.1518443798112; Mon, 12 Feb 2018 05:56:38 -0800 (PST) MIME-Version: 1.0 Received: by 10.200.52.247 with HTTP; Mon, 12 Feb 2018 05:56:37 -0800 (PST) In-Reply-To: References: <20180209235012.4993-1-rabel@robertabel.eu> <20180209235012.4993-2-rabel@robertabel.eu> <20180210092003.GA20377@1wt.eu> From: Miguel Ojeda Date: Mon, 12 Feb 2018 14:56:37 +0100 Message-ID: Subject: Re: [PATCH 1/3] auxdisplay: charlcd: fix hex literal ranges for graphics command To: Willy Tarreau Cc: Geert Uytterhoeven , linux-kernel , Robert Abel Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Feb 10, 2018 at 10:41 AM, Miguel Ojeda wrote: > On Sat, Feb 10, 2018 at 10:20 AM, Willy Tarreau wrote: >> Hi Miguel, >> >> On Sat, Feb 10, 2018 at 09:58:44AM +0100, Miguel Ojeda wrote: >>> On Sat, Feb 10, 2018 at 12:50 AM, Robert Abel wrote: >>> > The graphics command expects 16 hexadecimal literals, but would allow characters in range [0-9a-zA-Z] instead of [0-9a-fA-F]. >>> > >>> > Signed-off-by: Robert Abel >>> > --- >>> > drivers/auxdisplay/charlcd.c | 4 ++-- >>> > 1 file changed, 2 insertions(+), 2 deletions(-) >>> > >>> > diff --git a/drivers/auxdisplay/charlcd.c b/drivers/auxdisplay/charlcd.c >>> > index 642afd88870b..324d02f9f1c5 100644 >>> > --- a/drivers/auxdisplay/charlcd.c >>> > +++ b/drivers/auxdisplay/charlcd.c >>> > @@ -441,9 +441,9 @@ static inline int handle_lcd_special_code(struct charlcd *lcd) >>> > shift ^= 4; >>> > if (*esc >= '0' && *esc <= '9') { >>> > value |= (*esc - '0') << shift; >>> > - } else if (*esc >= 'A' && *esc <= 'Z') { >>> > + } else if (*esc >= 'A' && *esc <= 'F') { >>> > value |= (*esc - 'A' + 10) << shift; >>> > - } else if (*esc >= 'a' && *esc <= 'z') { >>> > + } else if (*esc >= 'a' && *esc <= 'f') { >>> >>> Willy, Geert: this seems obvious, but do you know if the broader range >>> was intended for some reason? >> >> No, I think it was simply a brain fart from me 14 years ago, as I can >> find it as well in the original 0.9.0 patch for kernel 2.4! >> >> Ack from me on this patch. > > Thanks Willy for the quick answer! Then: > > Compile-tested. > > Signed-off-by: Miguel Ojeda To clarify, I have picked this one up (and the other two) in my queue (sorry for any confusion!). > >> >> Willy