Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp529924pxx; Wed, 28 Oct 2020 10:23:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzTv0CteK84fNknlS3G4/bW88B0OVmiH4H4Zb9D74U07mvfw9JMwCOAlTXUpgFqsgmGjfKK X-Received: by 2002:aa7:dcd6:: with SMTP id w22mr8817774edu.378.1603905790415; Wed, 28 Oct 2020 10:23:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603905790; cv=none; d=google.com; s=arc-20160816; b=haAT75JWfRXbEPmo2sYwOIUGajAWW6m6KA5mPBXDE02eyD2OvmsU3YsSiiT83YaGum iFJhwUz9yGFWQ1p1sV7fgsGjYx7CD8Z8HNCykuWNuV/ABovwQVJkgJ5Gg7lknoWT5T4M lZ7l8GiVoGrAtaVdy8HP6fHWcPBuzuawZq1N/pBVW4cMX0bFciJ2A5gHVEo18e+zK7Hz dyxhrzgQVjontTqAKtxYSbij7vXXeK85nIQKRtb6Tow1V/QA1KJPH0SuKwim7xT+JnxI o6zkkDd5I1UCDvvGdGJfkPy1h/SjiwazCR8bakEm2uWssfeY8G3+Z4hnZltotC9Lfuzc 34Rg== 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=MaqwLNG12nfa0dXhuce8ZxxP7Vh4GL/3EMGzSxjA4eU=; b=urc4WDTkYTCyWb6xGWtHD3vopf4FdvQB5y0Wt/fbVc+iGDsNltE+SX/P2iMWUPlH9q i5KQF5f3JjZ0iNLCuQPyKucjK5I4iytECUyCmunCOdkakG5r/adzbetPBl6pQ31DEplZ YRToxVpoLnOYF0GCnxgfmRtA0F4R9CWw4sGwPx6NJem8W3k77gxGWD/W8GS1kh0j2B88 DEVZUhbplBoNONfiZd8OxLb1WVeAISdT2EdpfiH72AiR/C1FcGpei/my3j9nZ+ykKE97 lnqT8sCEE/65Sz1bH8g7bA8bBXLVBYPisgsu8xS/z4uKTK5x2WiEaDVlr2bZC6wq6OpS t+IA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=JsQwltHu; 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 n18si9672edr.422.2020.10.28.10.22.46; Wed, 28 Oct 2020 10:23:10 -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=JsQwltHu; 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 S1821143AbgJ0Rkq (ORCPT + 99 others); Tue, 27 Oct 2020 13:40:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:60322 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2902437AbgJ0OdV (ORCPT ); Tue, 27 Oct 2020 10:33:21 -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 8132C20709; Tue, 27 Oct 2020 14:33:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603809200; bh=ftXuAqiT+3LxPSTuRGNFhG7x62H/dfz1NXAzJSc4A+8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JsQwltHu/iCdo1LpESbjoXCAoHSCNCQEObGYjVbxFEh5HwZ0ZB1GRqpyNPzNEme+b 5MspM2LYaueEIhjDP8yT6sNY98EIxNPshLnrEZTuYnUUhguHjq0o1y0ErUK+I49yoe aXvax6U88U2uqopUPk9KT4b8q9SSnxvSgwndEHNY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Christophe JAILLET , Rakesh Pillai , Kalle Valo , Sasha Levin Subject: [PATCH 5.4 110/408] ath10k: Fix the size used in a dma_free_coherent() call in an error handling path Date: Tue, 27 Oct 2020 14:50:48 +0100 Message-Id: <20201027135500.196170656@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135455.027547757@linuxfoundation.org> References: <20201027135455.027547757@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 454530a9950b5a26d4998908249564cedfc4babc ] Update the size used in 'dma_free_coherent()' in order to match the one used in the corresponding 'dma_alloc_coherent()'. Fixes: 1863008369ae ("ath10k: fix shadow register implementation for WCN3990") Signed-off-by: Christophe JAILLET Reviewed-by: Rakesh Pillai Signed-off-by: Kalle Valo Link: https://lore.kernel.org/r/20200802122227.678637-1-christophe.jaillet@wanadoo.fr Signed-off-by: Sasha Levin --- drivers/net/wireless/ath/ath10k/ce.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath10k/ce.c b/drivers/net/wireless/ath/ath10k/ce.c index eca87f7c5b6c1..01e05af5ae085 100644 --- a/drivers/net/wireless/ath/ath10k/ce.c +++ b/drivers/net/wireless/ath/ath10k/ce.c @@ -1555,7 +1555,7 @@ ath10k_ce_alloc_src_ring(struct ath10k *ar, unsigned int ce_id, ret = ath10k_ce_alloc_shadow_base(ar, src_ring, nentries); if (ret) { dma_free_coherent(ar->dev, - (nentries * sizeof(struct ce_desc_64) + + (nentries * sizeof(struct ce_desc) + CE_DESC_RING_ALIGN), src_ring->base_addr_owner_space_unaligned, base_addr); -- 2.25.1