Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp5296150ybg; Tue, 22 Oct 2019 00:46:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqw5TjMz/9CwyYNMx+TlfyQQLSnZ0oi/v2W+DqazQOHo7Q2eFsVIETDKbKaHCszaaekbZM55 X-Received: by 2002:a05:6402:b17:: with SMTP id bm23mr29088197edb.6.1571730405625; Tue, 22 Oct 2019 00:46:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571730405; cv=none; d=google.com; s=arc-20160816; b=aKAaw1G3/KBKKZnybcz53OqCCXy8xZbk3/Iax/NjbGMdM11R+fj1iJfWIjMMoUjCZh AITyVoJysPZ9iFSNOIciYgYUD93eeX+Alixm1ron2AxuD2fDce0dvjKfaR2Zl4rpauo2 mH7FO/Op1yIo2PuOEwaBWPjU/fWKGKyt2y5usLcT91ig2skWZV0DXzGjuX2oQJgXVAK/ 38zfvn01/VPfPxZbXjQkdvCOon2GeWcYEp1U6c0eqHjmJ1bnhEkExqMiawyeiCbk3RSh +7+k/YgfYc5PgoWflOmSEjyNhPPQgDjYtqg2zgAup5ePje+jg9+HLBflrbW3tGOLSf0K BCDQ== 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 :in-reply-to:references:mime-version:dkim-signature; bh=Nh2LJWcAA6+F58FkBmsDYADEarvpFUTo1V/7oVQrNLc=; b=phYYk0TwCLT7JtpTZwg8lMdLgHY+2NN6vsXv5QWBCS6Pe7ijKpNPsN8cOKsGXxTbMB 99z7BOhAFWlayn15Y3XrN+bJgCv2Ah5D7zO9kDVn1lf5MzjqGDpyons9+cEAyrpnFvoi rkLxXtp97HmHl3UqqY2FWAbowIhPnpRpvOuUQk/9uxDbGWune5ccGa9jAlm7b6RVwn6e A1yseLl90V4+zUbySWH3LOOVU1ytpNIa4w6DCucJ2jMx8hJUqYsx6bV6yCCqWA7pOajZ d+/XylN6TvEEFn3OOudGxX8jGImYRH1uAkpRwWAksw46cL+99n+xV/K6OIfAtQz7THZG 3k3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dnADVe92; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c9si9714834ejn.362.2019.10.22.00.46.17; Tue, 22 Oct 2019 00:46:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-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=@linaro.org header.s=google header.b=dnADVe92; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387919AbfJVHnI (ORCPT + 99 others); Tue, 22 Oct 2019 03:43:08 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:53068 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387692AbfJVHnI (ORCPT ); Tue, 22 Oct 2019 03:43:08 -0400 Received: by mail-wm1-f65.google.com with SMTP id r19so15982523wmh.2 for ; Tue, 22 Oct 2019 00:43:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Nh2LJWcAA6+F58FkBmsDYADEarvpFUTo1V/7oVQrNLc=; b=dnADVe925smBvR+rSpyj4PtIlJk5/q3GB4C2JSunmryH/ihy/PAiXj+FVebkWFYq7h Vhy49WWqi7OJpoWSOJ9a/i3mE2seYWQfEvw/wTU/QS7L/aD4oysMQQ3jgn7MhGSO2G2R qv88wCmhp/vLRFQnQUR9IL1SUsC2x33PjpeCdt2aVQelQWXkF6ZxD5VpPOMVgJ0KRrub rfLOd9AJiPeOyFEKQT+skRwT7ZYS4zmIsbUxzvYwJRaypgVAMGDfjmP/91MRWtuHkCb5 W+iZfnoUhIBqsXz47EwLknza6gSLZUpCm/lXGzfu0LlKxgP2yGGFY1VNnaHnSNo1WBFE fOBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Nh2LJWcAA6+F58FkBmsDYADEarvpFUTo1V/7oVQrNLc=; b=LG0OOjFw19owtOA+H+R8T4O+zkaTr+ivtnwY9wXNfoB4djwPdlgR4my7Cv2Jx8J0pm pj9sUHKAJg7+lqnJr+j7uIjhgS+OkLE+cXNgK/IRDrX5a929eAAiviiMkhQ2CYjy0pOS taX+jK4CL7Bd8M3wYGh+wopdWtbZNSA9yYFsIxZF4PYqVJWoi6VVtQXEN7vX5B4vSCx7 MkeNG40SOxkIH645DNQqafrgzGYQMqF9XQwZ5EhV3aRzQ62s07wIs/NYaZB/UKOe1l5f 8Lt29hJwYE6kkb7HwTgqqsTg2fQ0TGx4BTi9vAmg6bQt5d7m3lBjy4wS1wk+tbYLRSW9 xemw== X-Gm-Message-State: APjAAAXYEzEpdr2dD4MNMGvMhxlqMbpguftyuRCgP0+Y1M7OYQe4CAfo BgI5tMQISU+wHZNvjJynmfq6s6RhKs3S71HJCadaGQ== X-Received: by 2002:a05:600c:2214:: with SMTP id z20mr1719270wml.10.1571730185195; Tue, 22 Oct 2019 00:43:05 -0700 (PDT) MIME-Version: 1.0 References: <0812dca3-8447-be46-b84c-e89f25176cbf@huawei.com> In-Reply-To: <0812dca3-8447-be46-b84c-e89f25176cbf@huawei.com> From: Ard Biesheuvel Date: Tue, 22 Oct 2019 09:43:00 +0200 Message-ID: Subject: Re: [PATCH v2] crypto: arm64/aes-neonbs - add return value of skcipher_walk_done() in __xts_crypt() To: Yunfeng Ye Cc: Herbert Xu , "David S. Miller" , Catalin Marinas , Will Deacon , "open list:HARDWARE RANDOM NUMBER GENERATOR CORE" , linux-arm-kernel , Linux Kernel Mailing List , hushiyuan@huawei.com, linfeilong@huawei.com Content-Type: text/plain; charset="UTF-8" Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Tue, 22 Oct 2019 at 09:28, Yunfeng Ye wrote: > > A warning is found by the static code analysis tool: > "Identical condition 'err', second condition is always false" > > Fix this by adding return value of skcipher_walk_done(). > > Fixes: 67cfa5d3b721 ("crypto: arm64/aes-neonbs - implement ciphertext stealing for XTS") > Signed-off-by: Yunfeng Ye Acked-by: Ard Biesheuvel > --- > v1 -> v2: > - update the subject and comment > - add return value of skcipher_walk_done() > > arch/arm64/crypto/aes-neonbs-glue.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm64/crypto/aes-neonbs-glue.c b/arch/arm64/crypto/aes-neonbs-glue.c > index ea873b8904c4..e3e27349a9fe 100644 > --- a/arch/arm64/crypto/aes-neonbs-glue.c > +++ b/arch/arm64/crypto/aes-neonbs-glue.c > @@ -384,7 +384,7 @@ static int __xts_crypt(struct skcipher_request *req, bool encrypt, > goto xts_tail; > > kernel_neon_end(); > - skcipher_walk_done(&walk, nbytes); > + err = skcipher_walk_done(&walk, nbytes); > } > > if (err || likely(!tail)) > -- > 2.7.4.3 >