Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp819995ybl; Wed, 8 Jan 2020 06:26:48 -0800 (PST) X-Google-Smtp-Source: APXvYqwqjSff2XhyDCD7LHb82bKVjb965D33qQi7UacpRJplN8DVhdI7GVMVdgMO4pi25rHnUG7x X-Received: by 2002:aca:503:: with SMTP id 3mr3072471oif.24.1578493608803; Wed, 08 Jan 2020 06:26:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578493608; cv=none; d=google.com; s=arc-20160816; b=Mf3xcr1aJfsafd9lJWXaiL3JoLtOyu22EWms1hDFwPNEHJUOmESh6qOTk24EpRUHWR sXVly4oNV/EYVyok5BqbRYlpBR4448eXydiSmLEzW4mztfptSbeU4HPQ67UFkouy6HIN XpzElGlwDchUqZp8Wiq30C6i3lbBg05zLO8q2I4LaNtvbq8sXTWue9fbnu/gXnUnydTL 8tm827HF7XKb5TcAag8iSRlmNatIPQytsjCql6VCrS/sSxClr08rXtOm4LDF5FxAEJBX OvK7bh9cdyEgZe5wF9tWY5p+tpSN00xVtsxvHbaxjfzmBdEZGuRtAhuwTMV17lFAU5ei SpCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=clEJSHFzJxXTF/L+L5nG3nazAWlUuBe7SRBk68jFd6s=; b=o9ev7FFDpKXD80KPhbNzqnTWO69otykZ2rYjKX8zwJocKgdA/J6W/IbhYPKUY7xUlQ 8mqITIAGIlXy2VrIraO0OvLDWEBLn1GSkre2ZU0CFpa8rCsRlqW0+bPSOhWQYsV62TFb MUy3ArIlHrodWIIlhSZXZ4tuF6DuklM6ihLvvZ3Ti1nx9sp/rpHSh0j6O2iZ0+NI5zBI v0rS2ppt4z++KYfTcHr7s1Ff2hz2RUqO5/pMzU1sRuTt4NRWe+5XAl1jOcstO4nYZeAi UfBXoMH/GfEGc4bcvXGcIdqppjcktzrwKsOBmZvQwBN5pnUJy6aOQNcohsbQGR3Yndre krNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=eOHK9Q8m; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 44si2006290otu.77.2020.01.08.06.26.35; Wed, 08 Jan 2020 06:26:48 -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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=eOHK9Q8m; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728197AbgAHNj2 (ORCPT + 99 others); Wed, 8 Jan 2020 08:39:28 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:36162 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727533AbgAHNj1 (ORCPT ); Wed, 8 Jan 2020 08:39:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=clEJSHFzJxXTF/L+L5nG3nazAWlUuBe7SRBk68jFd6s=; b=eOHK9Q8mtURBJ1nEoguBU3qKa ZnVSAnrg+EqlnzxvAjfSGzELcp+uZSRMg31svloblilttWFy1vMeY5F0IOyN1aUtOpMnnq2V6XmNt i98z3Tt9by8DN/Zm/QCgMRNbQruA/gxnYiy6BcXOJv1ym/nubqVxjHwJwh9FUAYgGB82hJ2eHuHn5 SSG0Le+CU5/Rq/wAV07qadpuVni8SN2Z7vIlgWecghpt8diUZRzxVW9lpO0BIewrLZ95y8sBP8ZHo BPTN9iBHhC+36BP6Xfj04eQxoPvCDayHj7FuEnFZHsvVwF22MGETmfpqNIdDv/8mFP/IT5HVeMB2L Cb6qq4GoQ==; Received: from hch by bombadil.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1ipBYU-0004Yn-Gk; Wed, 08 Jan 2020 13:39:26 +0000 Date: Wed, 8 Jan 2020 05:39:26 -0800 From: Christoph Hellwig To: Nikolai Merinov Cc: Davidlohr Bueso , Jens Axboe , linux-efi@vger.kernel.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] partitions/efi: Fix partition name parsing in GUID partition entry Message-ID: <20200108133926.GC4455@infradead.org> References: <20181124162123.21300-1-n.merinov@inango-systems.com> <20191224092119.4581-1-n.merinov@inango-systems.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191224092119.4581-1-n.merinov@inango-systems.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > index db2fef7dfc47..51287a8a3bea 100644 > --- a/block/partitions/efi.c > +++ b/block/partitions/efi.c > @@ -715,7 +715,7 @@ int efi_partition(struct parsed_partitions *state) > ARRAY_SIZE(ptes[i].partition_name)); > info->volname[label_max] = 0; > while (label_count < label_max) { > - u8 c = ptes[i].partition_name[label_count] & 0xff; > + u8 c = le16_to_cpu(ptes[i].partition_name[label_count]) & 0xff; > if (c && !isprint(c)) > c = '!'; > This adds an overly long line. Please add a an efi_char_from_cpu or similarly named helper to encapsulate this logic. Otherwise the change looks good.