From: YueHaibing <yuehaibing@huawei.com> To: <davem@davemloft.net>, <kvalo@codeaurora.org> Cc: <netdev@vger.kernel.org>, <linux-kernel@vger.kernel.org>, <ath10k@lists.infradead.org>, <linux-wireless@vger.kernel.org> Subject: Re: [PATCH] ath10k: fix incorrect size of dma_free_coherent in ath10k_ce_alloc_src_ring_64 Date: Fri, 1 Jun 2018 19:23:35 +0800 [thread overview] Message-ID: <06f13277-19dc-2ee3-bad8-ab064b2aa5a7@huawei.com> (raw) In-Reply-To: <20180601111602.24108-1-yuehaibing@huawei.com> On 2018/6/1 19:16, YueHaibing wrote: > sizeof(struct ce_desc) should be a copy-paste mistake > just use sizeof(struct ce_desc_64) to avoid mem leak > > Fixes: b7ba83f7c414 ("ath10k: add support for shadow register for WNC3990") > Signed-off-by: YueHaibing <yuehaibing@huawei.com> > --- > 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 3b96a43..35dec2a 100644 > --- a/drivers/net/wireless/ath/ath10k/ce.c > +++ b/drivers/net/wireless/ath/ath10k/ce.c > @@ -1512,7 +1512,7 @@ ath10k_ce_alloc_src_ring_64(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) + > + (nentries * sizeof(struct ce_desc64) + sorry ,I post the wrong patch,will send V2 > CE_DESC_RING_ALIGN), > src_ring->base_addr_owner_space_unaligned, > base_addr); >
WARNING: multiple messages have this Message-ID (diff)
From: YueHaibing <yuehaibing@huawei.com> To: davem@davemloft.net, kvalo@codeaurora.org Cc: netdev@vger.kernel.org, linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, ath10k@lists.infradead.org Subject: Re: [PATCH] ath10k: fix incorrect size of dma_free_coherent in ath10k_ce_alloc_src_ring_64 Date: Fri, 1 Jun 2018 19:23:35 +0800 [thread overview] Message-ID: <06f13277-19dc-2ee3-bad8-ab064b2aa5a7@huawei.com> (raw) In-Reply-To: <20180601111602.24108-1-yuehaibing@huawei.com> On 2018/6/1 19:16, YueHaibing wrote: > sizeof(struct ce_desc) should be a copy-paste mistake > just use sizeof(struct ce_desc_64) to avoid mem leak > > Fixes: b7ba83f7c414 ("ath10k: add support for shadow register for WNC3990") > Signed-off-by: YueHaibing <yuehaibing@huawei.com> > --- > 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 3b96a43..35dec2a 100644 > --- a/drivers/net/wireless/ath/ath10k/ce.c > +++ b/drivers/net/wireless/ath/ath10k/ce.c > @@ -1512,7 +1512,7 @@ ath10k_ce_alloc_src_ring_64(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) + > + (nentries * sizeof(struct ce_desc64) + sorry ,I post the wrong patch,will send V2 > CE_DESC_RING_ALIGN), > src_ring->base_addr_owner_space_unaligned, > base_addr); > _______________________________________________ ath10k mailing list ath10k@lists.infradead.org http://lists.infradead.org/mailman/listinfo/ath10k
next prev parent reply other threads:[~2018-06-01 11:23 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2018-06-01 11:16 [PATCH] ath10k: fix incorrect size of dma_free_coherent in ath10k_ce_alloc_src_ring_64 YueHaibing 2018-06-01 11:16 ` YueHaibing 2018-06-01 11:23 ` YueHaibing [this message] 2018-06-01 11:23 ` YueHaibing
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=06f13277-19dc-2ee3-bad8-ab064b2aa5a7@huawei.com \ --to=yuehaibing@huawei.com \ --cc=ath10k@lists.infradead.org \ --cc=davem@davemloft.net \ --cc=kvalo@codeaurora.org \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-wireless@vger.kernel.org \ --cc=netdev@vger.kernel.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.