Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3588684pxb; Mon, 24 Jan 2022 12:57:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJysY9pAoCUgN9giInCesB8Rk134gKMlGtwMwKx9ZIt/Xysv9ZUT3O0CxvOgLDgFQ1be4Dq+ X-Received: by 2002:a17:90b:f92:: with SMTP id ft18mr70870pjb.113.1643057835196; Mon, 24 Jan 2022 12:57:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643057835; cv=none; d=google.com; s=arc-20160816; b=wjdqKJcPbiYFYc1K7j9oh2eL11NBtsdR7nlbnw8/MMs66dpgtl1ZOn1GEvS57NFu6x RVCZVTP6sCOEQ68uua3L5mlkyUHFtqoQoP1V/7bo6O9xr4dVeqB2MefzGHw7TjxrY83Z 0LoqOGHRC5Etq8d7ZVQuHZy9WNFeQOzMSAz90RacpAmqvsDiyJdVVmk541VHMsalic/C f5wjQ8pHM4LJ/6prYLWm19+Jmd/tryzTe5AaOVFxUXczzV8Pc69w4dMJpCde/RsIZmVW K0Rmv2DPhuNNhP9JnXQd38iTMEUMvqIlVxVhNmucbKzkW7EyjTFgVrYKnplVndt+OHXW ZvEA== 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=jN6gzag40E8Fb0acwYxOHU17ktJg0rJ8Ak2DCrstvis=; b=CUMdij+dx71DMZbtyA3pQAGZxO159jHE2QlRk5KEb+AqT6bfJT+rQHqn895OR0wrMd Vsfl0/2vzzUMwlLSkHGMBl7YjSuUUOFA28q/cnd+0/ITAyuywigMPUSNOPDqgn1fWY4j 5C7xbiTWnzhraTbyXkB1QtwpgVmfYLqoa5W2NICX1/5KVfwAjOhrrOzZsXleIQY1a5UZ g2Za8bCX+wqkcS0ysBSlITekqNr6FuZEd/7kSGYJbUZGia9j+e5vX4pxohHrdfgYpgaZ 4pifgsr2IMDO8yCE2X4a4pXrYlbsgs8iv0EVUlwOuZhpbIA+/bNWIMBMULz4xod7Hw2U iJAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=W2VLwLU9; 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=pass (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 lk13si411360pjb.103.2022.01.24.12.57.02; Mon, 24 Jan 2022 12:57:15 -0800 (PST) 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=@linuxfoundation.org header.s=korg header.b=W2VLwLU9; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1355515AbiAXUOj (ORCPT + 99 others); Mon, 24 Jan 2022 15:14:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351783AbiAXTwn (ORCPT ); Mon, 24 Jan 2022 14:52:43 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 164BEC061395; Mon, 24 Jan 2022 11:26:24 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id AA6ED6148C; Mon, 24 Jan 2022 19:26:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 77DCEC340E5; Mon, 24 Jan 2022 19:26:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643052383; bh=XLSLNSZKrLzuOonGSWPffYXKyT9mQ/W4Hk3kFvBGZ7k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=W2VLwLU9uUR4fVbgRClcD8tSODYdIaNLk34lv3IrCd5iiMBM9hscCSxn/VJffAOmP Uurs0c99VcKCCAP/9DFxjmYoW/l6BECHGzXAFtSTbr9BJl2Gzm9TjoUOVu2ujbiaqf IfTupIxC2yRSmjRV69JZ9H8Cx35HnG1tD15EuvbE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Bryan ODonoghue , Kalle Valo , Sasha Levin Subject: [PATCH 5.4 041/320] wcn36xx: Release DMA channel descriptor allocations Date: Mon, 24 Jan 2022 19:40:25 +0100 Message-Id: <20220124183955.151421264@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124183953.750177707@linuxfoundation.org> References: <20220124183953.750177707@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: Bryan O'Donoghue [ Upstream commit 3652096e5263ad67604b0323f71d133485f410e5 ] When unloading the driver we are not releasing the DMA descriptors which we previously allocated. Fixes: 8e84c2582169 ("wcn36xx: mac80211 driver for Qualcomm WCN3660/WCN3680 hardware") Signed-off-by: Bryan O'Donoghue Signed-off-by: Kalle Valo Link: https://lore.kernel.org/r/20211105122152.1580542-3-bryan.odonoghue@linaro.org Signed-off-by: Sasha Levin --- drivers/net/wireless/ath/wcn36xx/dxe.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/net/wireless/ath/wcn36xx/dxe.c b/drivers/net/wireless/ath/wcn36xx/dxe.c index 4da25e84793b7..c400261352bc8 100644 --- a/drivers/net/wireless/ath/wcn36xx/dxe.c +++ b/drivers/net/wireless/ath/wcn36xx/dxe.c @@ -952,4 +952,9 @@ void wcn36xx_dxe_deinit(struct wcn36xx *wcn) wcn36xx_dxe_ch_free_skbs(wcn, &wcn->dxe_rx_l_ch); wcn36xx_dxe_ch_free_skbs(wcn, &wcn->dxe_rx_h_ch); + + wcn36xx_dxe_deinit_descs(wcn->dev, &wcn->dxe_tx_l_ch); + wcn36xx_dxe_deinit_descs(wcn->dev, &wcn->dxe_tx_h_ch); + wcn36xx_dxe_deinit_descs(wcn->dev, &wcn->dxe_rx_l_ch); + wcn36xx_dxe_deinit_descs(wcn->dev, &wcn->dxe_rx_h_ch); } -- 2.34.1