[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20210418063525.CE763C4338A@smtp.codeaurora.org>
Date: Sun, 18 Apr 2021 06:35:25 +0000 (UTC)
From: Kalle Valo <kvalo@...eaurora.org>
To: Lv Yunlong <lyl2019@...l.ustc.edu.cn>
Cc: buytenh@...tstofly.org, davem@...emloft.net, kuba@...nel.org,
gustavoars@...nel.org, linux-wireless@...r.kernel.org,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
Lv Yunlong <lyl2019@...l.ustc.edu.cn>
Subject: Re: mwl8k: Fix a double Free in mwl8k_probe_hw
Lv Yunlong <lyl2019@...l.ustc.edu.cn> wrote:
> In mwl8k_probe_hw, hw->priv->txq is freed at the first time by
> dma_free_coherent() in the call chain:
> if(!priv->ap_fw)->mwl8k_init_txqs(hw)->mwl8k_txq_init(hw, i).
>
> Then in err_free_queues of mwl8k_probe_hw, hw->priv->txq is freed
> at the second time by mwl8k_txq_deinit(hw, i)->dma_free_coherent().
>
> My patch set txq->txd to NULL after the first free to avoid the
> double free.
>
> Fixes: a66098daacee2 ("mwl8k: Marvell TOPDOG wireless driver")
> Signed-off-by: Lv Yunlong <lyl2019@...l.ustc.edu.cn>
Patch applied to wireless-drivers-next.git, thanks.
a8e083ee8e2a mwl8k: Fix a double Free in mwl8k_probe_hw
--
https://patchwork.kernel.org/project/linux-wireless/patch/20210402182627.4256-1-lyl2019@mail.ustc.edu.cn/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
Powered by blists - more mailing lists