Received: by 10.223.164.200 with SMTP id h8csp885572wrb; Mon, 6 Nov 2017 00:09:16 -0800 (PST) X-Google-Smtp-Source: ABhQp+Tejg+E5Xbn4VDEXUBpFxf+Bx+aVNKxUBc9oTnlTWLzmqcNYTCTZ8ze3iZ0qzaKYZFAqw0Q X-Received: by 10.84.240.12 with SMTP id y12mr13935878plk.249.1509955756721; Mon, 06 Nov 2017 00:09:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1509955756; cv=none; d=google.com; s=arc-20160816; b=J0E38++XkPsJj5Omd+3SKUy4z92N0Vl7g4MCYiICgU4zoQ/W23NOa8+VT8XA2xwd7a UUVmMNxZ78Fkkcw1RrXtGQBpKE9hZVocWpnFRQbSK30kFFdBPQk5e6uRqkFEIvaxz4NK hxQUzWofJ5iPephObCHrC1lqJJsSgKrnTtUbGGRGBQrRaWkx/zP+psTdFzsD8wn7Tbdq OhsWoAJrG/FQ5IX/bJb2Z1CSYlafSt/mYALDhnI6iM+zq4dpXwkmRea1THgewpX7S++Z mu1dVNx1ytJKn7rG81dAkd9SYPAo9/Itg0d8MMdjSeGq/8H/etB7OJT8QdCGTlGnk2S9 gjoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:arc-authentication-results; bh=u3JNHNZ1zwTsLFjdz9qjH33pNY+uGgN4+mqMB8InUxo=; b=xBK6IDhyLIgvXCUu6TWUz1AtAEOWen0B/ZShSO1IBrb4mB7xyBuLB4kAroxObvVEU7 OA+lNS8aHfjz9X7Y4V4DXWlR95EVNqFwSJghKaQWyem7Msdrxh0r8Qbn36BIb0SmVHT7 2fYCcWu9KXE7xjkVu+WRWcpMCDdwy1dolFkWma7JSyVrxJBnbxr7sU/9iayD+spHutV5 dMty0aYxHY2PhXxBPjTVSwIDRaM/Wyi6fsLdmlgxCxkRGZRKo9LBiWWo2iueBBNID60P 4mhtaKUUZOFp/Fk/Agd/0Uoe3134Q+tPlhkwkQcJPJrBALZTDZ8tij9TggthFfvNLVw9 Yk9A== ARC-Authentication-Results: i=1; mx.google.com; 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 h10si9822951plt.693.2017.11.06.00.09.03; Mon, 06 Nov 2017 00:09:16 -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; 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 S1751941AbdKFIHk (ORCPT + 98 others); Mon, 6 Nov 2017 03:07:40 -0500 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:64370 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750737AbdKFIHi (ORCPT ); Mon, 6 Nov 2017 03:07:38 -0500 Received: from pps.filterd (m0046037.ppops.net [127.0.0.1]) by mx07-.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id vA683cR3009119; Mon, 6 Nov 2017 09:06:47 +0100 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 2e146w10ep-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 06 Nov 2017 09:06:47 +0100 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 82AC63A; Mon, 6 Nov 2017 08:06:45 +0000 (GMT) Received: from Webmail-eu.st.com (sfhdag7node2.st.com [10.75.127.20]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 2CCA81326; Mon, 6 Nov 2017 08:06:45 +0000 (GMT) Received: from localhost (10.75.127.47) by SFHDAG7NODE2.st.com (10.75.127.20) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Mon, 6 Nov 2017 09:06:44 +0100 From: Lionel Debieve To: Herbert Xu , "David S . Miller" , Maxime Coquelin , Alexandre Torgue , , , CC: Benjamin Gaignard , Fabien Dessenne , Ludovic Barre Subject: [PATCH 1/1] crypto: stm32/hash - Fix return issue in update Date: Mon, 6 Nov 2017 09:05:47 +0100 Message-ID: <1509955547-23983-1-git-send-email-lionel.debieve@st.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.75.127.47] X-ClientProxiedBy: SFHDAG3NODE3.st.com (10.75.127.9) To SFHDAG7NODE2.st.com (10.75.127.20) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-11-06_02:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When update data reached the threshold for data processing, we must inform that processing is on going. Signed-off-by: Lionel Debieve --- drivers/crypto/stm32/stm32-hash.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/crypto/stm32/stm32-hash.c b/drivers/crypto/stm32/stm32-hash.c index c462be7..4ca4a26 100644 --- a/drivers/crypto/stm32/stm32-hash.c +++ b/drivers/crypto/stm32/stm32-hash.c @@ -895,7 +895,6 @@ static int stm32_hash_enqueue(struct ahash_request *req, unsigned int op) static int stm32_hash_update(struct ahash_request *req) { struct stm32_hash_request_ctx *rctx = ahash_request_ctx(req); - int ret; if (!req->nbytes || !(rctx->flags & HASH_FLAGS_CPU)) return 0; @@ -909,12 +908,7 @@ static int stm32_hash_update(struct ahash_request *req) return 0; } - ret = stm32_hash_enqueue(req, HASH_OP_UPDATE); - - if (rctx->flags & HASH_FLAGS_FINUP) - return ret; - - return 0; + return stm32_hash_enqueue(req, HASH_OP_UPDATE); } static int stm32_hash_final(struct ahash_request *req) -- 2.7.4 From 1583093428060554120@xxx Sat Nov 04 00:32:22 +0000 2017 X-GM-THRID: 1583093398980660688 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread