Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp511695pxx; Wed, 28 Oct 2020 10:00:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwlCaDJuifWPsnoDabNlhgkUnGva1HCJ3Ffpjnb8vhEYXdEFNh7HkCRvIrIzK/DVZQyp6/i X-Received: by 2002:a17:906:1bea:: with SMTP id t10mr8358292ejg.305.1603904429317; Wed, 28 Oct 2020 10:00:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603904429; cv=none; d=google.com; s=arc-20160816; b=QPKnwEa/ZBvRqyv9IZqtX7aq1OBt/7EC65yrx5DneEjKLqsgXQw1ON96mraxR897UR 3TWRYrvw4TOHboZRyhb/lUzWjkwrNjdj40zGpm01QtDRGwRDhJVmkXA4xqtEQHoJJ047 4bPmMpg3gJM/iR2rMpTpXZFBK3kr/CK3DajIVKEJ9UCxlD7dQpd+Kny+o2bZQaaV8vFx 13lMJI/N4x9mSFdOropeCnL3bW0GMEcN0Uw7CEM/ZmKGm6qMpJkUVdCrv7+sJK4jaKDg fOfy04NC828C6nBuHunoSUq2XMIJGoZN5OfCH0EG86KOCN8C3MmhZTErqwfEwmHTKecr ZM6w== 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=nYI9rpA81pVaKUbhMhgr52tEpwDrfc2lGIkA/YAR8wk=; b=d6/KtRHx21hYNtQEUGQU0rooh2jp/k2zoCCF/h/C2BJGheU3R0v+FaYMv2lZx4v8UO oq0C/4a60W6Yb5IMf5PqT0Ibz9SVHjYMT2UpmnKWEaaG7DFBh0JP5LtNNEd5IGtAKH7E lk4eItytpztZ5+k4789VbXv26RVUj6DRPpafQpAUJRCVRl7I7yEWbEgkdTC/vAtDbEk3 uL/VitogeUl5cDIiWHFMr1mBhx31Kro94Wd65xTLNx1wOM2wO4/d6ZkFmphaQL84F8Eo o6RR8mcdXp9Vk+Zo6TxgHnsgt+5dofxTEK+UwBgXHhx0acQRrOZQy9E6lBuB4AU4GCfL MlCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=lLg9CDfW; 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 j13si1208edj.549.2020.10.28.10.00.05; Wed, 28 Oct 2020 10:00:29 -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=lLg9CDfW; 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 S1819209AbgJ0R2e (ORCPT + 99 others); Tue, 27 Oct 2020 13:28:34 -0400 Received: from mail.kernel.org ([198.145.29.99]:51728 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2901243AbgJ0OwZ (ORCPT ); Tue, 27 Oct 2020 10:52:25 -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 143D02225E; Tue, 27 Oct 2020 14:52:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603810341; bh=m2JXGGlnBB/6hxqnA1eCiZSmNAMbYZ/CJ4RrKd0MVX4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lLg9CDfWRI2cchPC51qt27Yb6Er+qOPxTtj8uWYx3ywA8U9IS5UPZqSMmvwPtATF5 evij/17Z093XwquTa8XfOgYSNGZ7d7QHJcb7zWXRDknz3ILd+nUuaeWHPgCZ/KkvMu w2oHhqP1A/agLlo1mjXqAvi7c5/gqIrqP2pUCl5Q= 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 5.8 104/633] crypto: ixp4xx - Fix the size used in a dma_free_coherent() call Date: Tue, 27 Oct 2020 14:47:27 +0100 Message-Id: <20201027135527.570791852@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135522.655719020@linuxfoundation.org> References: <20201027135522.655719020@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 ad73fc9466821..3be6e0db0f9fc 100644 --- a/drivers/crypto/ixp4xx_crypto.c +++ b/drivers/crypto/ixp4xx_crypto.c @@ -528,7 +528,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); } } -- 2.25.1