Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2838089pxu; Mon, 14 Dec 2020 12:06:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJz5WewYTAvP+HJXd6JjKOGNUlXnGmql2T8YcR73tjGqBCoyhYJU51+bjNK1p2OhKw2yAKaW X-Received: by 2002:a17:906:56ca:: with SMTP id an10mr23989299ejc.498.1607976387727; Mon, 14 Dec 2020 12:06:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607976387; cv=none; d=google.com; s=arc-20160816; b=lXq7DsLcYAq5Wq631UYUSFgj2uc6hBNjrRpGlfeSIFX1Mcw5FTi1B9FLfJwq8W8gDI TaRUgDRPusWb+h8IAFEZtUkyFZIse7KXF9I+PB1unfIm1yzGcDlCOzSchpH2+PPPQ469 UsshEsFYhzwIhCUVoJmHX6WfpulkbWVAQdChJ5oJGGCgfOA4uIm5sOBoODYGegTkc5la 3I8VHLfszrTPo8/30Oo391s7ReM4JjIg4dMNCNOqCzmJwFOsH8EJHT1tj1y7XjkSXVoP 5b1zZqJJuIA6rG/9HYKUquVhDFV0oOdWFN/kLewpTkGpL0T4FYQAVGH+BqG5MEJce0o5 jUMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=id/Q5ao6THistubUC4V3inH2fBZpq87NgTKXp27iujY=; b=rWulmRTjeKeiG8G2tKxsQ3emzG5g5PObEqzaZztUhMogWEgzjkYkgluD2Oyn8QFBIW SnXWBQPVisx60fA7eKqGiW/LQX9D7Rv35thRxnfWiLG23fNNcnGIvcyRySTmW6ZkK8LV B1Z6irTab1LDi9yae0LyJtVRyFxIvZXdC/OkeoPNlX3RYZB02tG65RgvVDSVXCVg8g1U t/i2z0StkjU7LR222r+YmWmtgto8ypmkTwgXVLaoa4BV7wrknwNrUFu3gvVVqBawd04g bTP6qEwuFWFXWy1juPbE+o6wAgx3o3fL4nYT2IG8kiZDvj4G/pIprcgC+9pyuTIJmBzu 3Glw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=Ah7IwggI; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a10si11087004edb.130.2020.12.14.12.06.03; Mon, 14 Dec 2020 12:06:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=Ah7IwggI; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2503006AbgLNUEk (ORCPT + 99 others); Mon, 14 Dec 2020 15:04:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41116 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2503000AbgLNUEb (ORCPT ); Mon, 14 Dec 2020 15:04:31 -0500 Received: from mail-pl1-x643.google.com (mail-pl1-x643.google.com [IPv6:2607:f8b0:4864:20::643]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B9095C0611CB for ; Mon, 14 Dec 2020 12:03:23 -0800 (PST) Received: by mail-pl1-x643.google.com with SMTP id 4so9381493plk.5 for ; Mon, 14 Dec 2020 12:03:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=id/Q5ao6THistubUC4V3inH2fBZpq87NgTKXp27iujY=; b=Ah7IwggI4z9FHB9YbqLDpj0nCp9uUjVuQkXErTXTYqynlfQmuvYA/CfhxB8gw6N9BC HG67Iq68JFApt8mGenms10a8fNTb5JsuoWXEtogvyqPdZP7FmFkB9ljRwdL4NRpuwzjG M0Bpfdrwg3x31h+drs15tcIqwfjErlthCxte5M7XGlRzs02sCnVvcLOYKhedn8YGB0vE KzlYatfyyvZVCZ2VOypXNWPdCmSDNoTSDYLhI4cHDorUzuAOrqbFJmx8qb3mUHU+ghLD TmzGTf1nHnES3uxiI8qn3B6pkHyELmsBOf6IK5Dn/JaVIaOYWJgIKwlIQRx/g61ecqAx ME3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=id/Q5ao6THistubUC4V3inH2fBZpq87NgTKXp27iujY=; b=PvvT/+eopO+ijYCmTwFm2RapnKIXTw1RNZn77RBVmu9T1Hyg5FbZ2GuEQxOxmvjZ67 9nJchV5zqavu3J8lvhZuhEusBhlhX2Cbk2Iv6AFci868MVbRbDZHx7ZI494YnzEcazRl oeccxamYWEEfQKOzmhlnSjDirqYPsob6tQ5aQc0BsLbQ7Tgnt5SUVkbJ38FVVHWSSJlF wEcofEyGrsvzf8kx3Vajc0Rda5vzR5ByOC9zLq4DuWHL8bn+uQ0240EbHoX/ngeMAtkN cZPovsrdVCMvryD9A9uXlUlFanmy8AMSFiAiP5rMbImdKdgHKTEe2XwYDV8Cb6h2isjj QfUg== X-Gm-Message-State: AOAM531zXjsReCAXAE7Ms6FhKudJEQDqJNw2zE3RKkr9XgcgHZsJ76+v Zj8ZWTSO+UHS7xIs6bmk8TOCUw== X-Received: by 2002:a17:90b:1294:: with SMTP id fw20mr26654548pjb.187.1607976203320; Mon, 14 Dec 2020 12:03:23 -0800 (PST) Received: from localhost.localdomain ([163.172.76.58]) by smtp.googlemail.com with ESMTPSA id js9sm22434109pjb.2.2020.12.14.12.03.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Dec 2020 12:03:22 -0800 (PST) From: Corentin Labbe To: arnd@arndb.de, davem@davemloft.net, herbert@gondor.apana.org.au, jernej.skrabec@siol.net, mripard@kernel.org, wens@csie.org Cc: linux-arm-kernel@lists.infradead.org, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, Corentin Labbe , stable@vger.kernel.org Subject: [PATCH v4 5/8] crypto: sun4i-ss: initialize need_fallback Date: Mon, 14 Dec 2020 20:02:29 +0000 Message-Id: <20201214200232.17357-6-clabbe@baylibre.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201214200232.17357-1-clabbe@baylibre.com> References: <20201214200232.17357-1-clabbe@baylibre.com> Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org The need_fallback is never initialized and seem to be always true at runtime. So all hardware operations are always bypassed. Fixes: 0ae1f46c55f87 ("crypto: sun4i-ss - fallback when length is not multiple of blocksize") Cc: Signed-off-by: Corentin Labbe --- drivers/crypto/allwinner/sun4i-ss/sun4i-ss-cipher.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/allwinner/sun4i-ss/sun4i-ss-cipher.c b/drivers/crypto/allwinner/sun4i-ss/sun4i-ss-cipher.c index e097f4c3e68f..5759fa79f293 100644 --- a/drivers/crypto/allwinner/sun4i-ss/sun4i-ss-cipher.c +++ b/drivers/crypto/allwinner/sun4i-ss/sun4i-ss-cipher.c @@ -179,7 +179,7 @@ static int sun4i_ss_cipher_poll(struct skcipher_request *areq) unsigned int obo = 0; /* offset in bufo*/ unsigned int obl = 0; /* length of data in bufo */ unsigned long flags; - bool need_fallback; + bool need_fallback = false; if (!areq->cryptlen) return 0; -- 2.26.2