Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp627862pxx; Wed, 28 Oct 2020 12:47:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwKDwAYiVG7P/Xugp2EzF3GXi7bsL/VIH7hsMJoCVfEjJwCsqLqcZLkfmEs7B4fk1HrFNul X-Received: by 2002:a50:8d48:: with SMTP id t8mr566557edt.228.1603914469686; Wed, 28 Oct 2020 12:47:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603914469; cv=none; d=google.com; s=arc-20160816; b=nplX0ZpofIp4OFsXtKL0C7tpOpo7xlMfncpMUuKIpgdqqo7ZSE0VDwGued+GsEA0Us JFcSmkaOd7q/zRldyfLtDb1Fz/eadCmyZez4mTY/i2P2WsDv8miljtkCRZYd+bFaGR8R Y3GXVDlDBv3Vp+LtJK71P6ZZIgo1dKip2jy9vLdGaT112dpliPcB3mb8YZvhshG6prJb 1ODnz7evF66ykHbFIxZJtU5N7j9tkFvriAynRym6Z0xdpXPjsJ88kVAv6kUegT/s3445 +RZ5tdXqOz/+ML/EPIC7bjcnndKl8CllcHLbxkXpukicM3cnoS5xWCvdSrfmpEMvupIR ZJoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=UPOFcvNXz4Km1uP8lyWB9NlOdX46NhR9KNuJCK7oVwU=; b=o9YYWv22juA27V8eQVFuuDQTiMOK+Z7PmVtb79cqcYW9gm/n8QIP34RG1gpr5ePkaq t52mubp64eP5vts7qhGsD6sCEXQb78JSUHz2kNbZeLJnYhx5vjGxklkgvCHTHnDvmIfe 2FEqJ/hQb8R15Chob70UEGQCYBerXE1MckCH29YW6IsKtsFN7lRlGuPZ6DJOX8eMH2Pq sRivj31xcVh19pVgEPU/+Q+Z22sLLpsBuYNs+P4WPs67SbMjnXieRVJ0iP+wpIXqyGsr RogzlJBFCM0Z6ihTTUasJr7+JKdMRppRuq6rsTT9NC1flwcx+SwjDwXlU+GOmUOFYzRU pekA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ECAJkZHP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ay1si32292edb.3.2020.10.28.12.47.27; Wed, 28 Oct 2020 12:47:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@kernel.org header.s=default header.b=ECAJkZHP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1827809AbgJ0S2Q (ORCPT + 99 others); Tue, 27 Oct 2020 14:28:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:44118 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S368177AbgJ0N5U (ORCPT ); Tue, 27 Oct 2020 09:57:20 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9C80F21D42; Tue, 27 Oct 2020 13:57:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603807040; bh=9y+m+r1F1TV5hF00OHKbbN9tY2ZlfbSVeuXL32U4pI0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ECAJkZHPe8io6KgQSZ4GqwpNABEiGmAbAEREi9JC8Zvj5C78p3GoQ67G/qWKA5fTm onzZoRXvm5EUcaCEdGfNqHnNIcr/Xc47wCfklheqAp2RJJIrJ/6J8QSf+W6zUNgBht ZInm1WWxAH9l2SpijFAc/5M9sXTsiK+3YOSzhFd8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Christophe JAILLET , Herbert Xu , Sasha Levin Subject: [PATCH 4.4 020/112] crypto: ixp4xx - Fix the size used in a dma_free_coherent() call Date: Tue, 27 Oct 2020 14:48:50 +0100 Message-Id: <20201027134901.529686500@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027134900.532249571@linuxfoundation.org> References: <20201027134900.532249571@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Christophe JAILLET [ Upstream commit f7ade9aaf66bd5599690acf0597df2c0f6cd825a ] Update the size used in 'dma_free_coherent()' in order to match the one used in the corresponding 'dma_alloc_coherent()', in 'setup_crypt_desc()'. Fixes: 81bef0150074 ("crypto: ixp4xx - Hardware crypto support for IXP4xx CPUs") Signed-off-by: Christophe JAILLET Signed-off-by: Herbert Xu Signed-off-by: Sasha Levin --- drivers/crypto/ixp4xx_crypto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/ixp4xx_crypto.c b/drivers/crypto/ixp4xx_crypto.c index 8f27903532812..13657105cfb93 100644 --- a/drivers/crypto/ixp4xx_crypto.c +++ b/drivers/crypto/ixp4xx_crypto.c @@ -533,7 +533,7 @@ static void release_ixp_crypto(struct device *dev) if (crypt_virt) { dma_free_coherent(dev, - NPE_QLEN_TOTAL * sizeof( struct crypt_ctl), + NPE_QLEN * sizeof(struct crypt_ctl), crypt_virt, crypt_phys); } return; -- 2.25.1