Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1024325pxa; Wed, 5 Aug 2020 20:00:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw8bt81ybXnm6rCjrK5PNn6uBcRZIu2BO5os9bVAPp6pclXn/lGSG4k0Mf7oogBPgnf5WzE X-Received: by 2002:aa7:c408:: with SMTP id j8mr2132502edq.83.1596682801677; Wed, 05 Aug 2020 20:00:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596682801; cv=none; d=google.com; s=arc-20160816; b=sg4U2gl8NeYXHOyS2Eqh4jBtA8qS1kWVcYqpxJ4yeMxRDeOpR98titWjhOu0Or9G/Y t5Fy3cz0hk72GRBOhRHMxdIrl0SVX64Duu0VrH5QvRXOQr47ntTaU03txb/hYlLGvB+2 IVJdkqxmk4DPtjGerXb47JqRqLhd8F03ovl0PKzrYxnKL8/ArXGZNS41ZTlzw/y+dORy 6Ea6anJ+LGvsggOC3AsjszdQaYYH27E0aIraP7gIfhhJ54L5oJVXbXlnGrxrydNgO7c6 zCxNRrxyxwORJdUGJhkRvr+e4XXn9SOfNuzhVmJnl3dtg14cpjufI0v06sX5wrvV2tGL gQ/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language:thread-index :content-transfer-encoding:mime-version:message-id:date:subject :in-reply-to:references:cc:to:from:dmarc-filter:dkim-signature; bh=H/fMnJVieUL4Dlvn7ai7jzobHw8KyVB1/ebQeG0HImM=; b=P93mlnNItVqt2GeGCoPVg+Wglt7xRBV4M11B4t74Mi843Itt+k848LDTuFlaoEKxPf UJvkdeG1ZlJMyHa5U4glSWpqw3mn/hXfwTYT3rOyN03nLsu5FduQhbot5NKQ6qhi7u9f UBDnlmoMEyTUF1PlHp1vG2jItgrQ/4/TjUqySK6YsyrgW901wiNGTpwAt/85rRsa6i5v lLj/fmR1RAS4BKOExKmvlXqFw/IxAMNCBema1FtywZ50fvm1Qrt6BH3mFWyocoSXM/Ha c/11F7cOPWwRzmqBcy4cva++Ty9EkASkzcJqrnc8HuJk9lYI3mMeMMMfx+t5Vf7q2EvA CPXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b="e/pM2Lpf"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t25si2530800ejc.222.2020.08.05.19.59.38; Wed, 05 Aug 2020 20:00:01 -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=fail header.i=@mg.codeaurora.org header.s=smtp header.b="e/pM2Lpf"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727012AbgHFC5R (ORCPT + 99 others); Wed, 5 Aug 2020 22:57:17 -0400 Received: from m43-7.mailgun.net ([69.72.43.7]:50532 "EHLO m43-7.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726851AbgHFC5R (ORCPT ); Wed, 5 Aug 2020 22:57:17 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1596682636; h=Content-Transfer-Encoding: Content-Type: MIME-Version: Message-ID: Date: Subject: In-Reply-To: References: Cc: To: From: Sender; bh=H/fMnJVieUL4Dlvn7ai7jzobHw8KyVB1/ebQeG0HImM=; b=e/pM2LpfWGkSXVAP9ixbyDkDm1hkDMae2cuyebZcY9q9SvCACbRE7V3zDzSy2XkGP/ikr4Za Iizbt8Rnkx7o0ioQUO+evV8aYa+KZrRBe1OWSgkpdyNj2K24e5nAD0yedhbiU5CGFCFW0NoJ lG0nLPhW1VNVjMkDCshsucB+8Tg= X-Mailgun-Sending-Ip: 69.72.43.7 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n18.prod.us-west-2.postgun.com with SMTP id 5f2b718b2889723bf899ca81 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Thu, 06 Aug 2020 02:57:15 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id BF589C433AF; Thu, 6 Aug 2020 02:57:15 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED,SPF_NONE, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from Pillair (unknown [49.205.240.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: pillair) by smtp.codeaurora.org (Postfix) with ESMTPSA id 51009C433CB; Thu, 6 Aug 2020 02:57:11 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 51009C433CB Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=pillair@codeaurora.org From: "Rakesh Pillai" To: "'Christophe JAILLET'" , , , Cc: , , , , References: <20200802122227.678637-1-christophe.jaillet@wanadoo.fr> In-Reply-To: <20200802122227.678637-1-christophe.jaillet@wanadoo.fr> Subject: RE: [PATCH] ath10k: Fix the size used in a 'dma_free_coherent()' call in an error handling path Date: Thu, 6 Aug 2020 08:27:07 +0530 Message-ID: <002101d66b9d$497721b0$dc656510$@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQL6RW6rmvo2uaX7dS3qhQ/yDQwO+Kbir3+A Content-Language: en-us Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > -----Original Message----- > From: Christophe JAILLET > Sent: Sunday, August 2, 2020 5:52 PM > To: kvalo@codeaurora.org; davem@davemloft.net; kuba@kernel.org; > pillair@codeaurora.org > Cc: ath10k@lists.infradead.org; linux-wireless@vger.kernel.org; > netdev@vger.kernel.org; linux-kernel@vger.kernel.org; kernel- > janitors@vger.kernel.org; Christophe JAILLET > > Subject: [PATCH] ath10k: Fix the size used in a 'dma_free_coherent()' call in > an error handling path > > 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 > --- > This patch looks obvious to me, but commit 1863008369ae looks also simple. > So it is surprising that such a "typo" slipped in. Reviewed-by: Rakesh Pillai > --- > 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 294fbc1e89ab..e6e0284e4783 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