OSDN Git Service

ath10k: fix incorrect size of dma_free_coherent in ath10k_ce_alloc_src_ring_64
authorYueHaibing <yuehaibing@huawei.com>
Fri, 1 Jun 2018 11:25:48 +0000 (19:25 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Oct 2018 23:59:16 +0000 (16:59 -0700)
commit06c21f7423e7eabbe85dd18d4de8e9f6bc69400d
tree9f44c77176c5aa7a7a626586e63c1d105ed54c89
parent10db0e22fb8c50db736e5294af33fae43e950fe6
ath10k: fix incorrect size of dma_free_coherent in ath10k_ce_alloc_src_ring_64

[ Upstream commit 5a211627004e2cddd0ab8b9df19e5fb0bbe97634 ]

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>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/ath/ath10k/ce.c