Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3690840pxb; Mon, 24 Jan 2022 15:28:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJzyTmEjbmRNPkbV+PFkjkEgfuulXx3lH6m9DEiB+K7TaF825zKdhGF1u8z2CJD8W7d2ozdW X-Received: by 2002:a17:90a:fe2:: with SMTP id 89mr613848pjz.162.1643066936305; Mon, 24 Jan 2022 15:28:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643066936; cv=none; d=google.com; s=arc-20160816; b=MQFiWegaYZN6vWmub+p7UROD0KUo3ZuaHvoP+itetndB42MmyaVTYBJnu1toroXLxW EMJYaM/Ck6b0Fq/WITYzYaUikDcPHVT7PHTDwz/aobPghiwx7IVtc4xcW3wGAZ2aq/T1 kflZVkIGCztxWnypp76blePxkMTjOoYaJSQzjEa0Pc7l238ZVVUmOnqkVq3xo7OlBTEg G8sUIn3VNalua/IQirWlDz5dy5YAvxUi7/Wo9yxbZ9iv7jbM1Gm5LAja+52qP5RnkJ4c kHy+M7tVYHe9E5HhSbij5NPlkuA9vlq5WeG5gnX5Fn5VDY2blE3I85FhcIrmpxeKHoCV 0JxA== 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=TefK14y/7TahORPHcKT/llWzJWMl8Wat66lvrI2ZFcg=; b=KA7kSOPAxfmpG2ZAwJEW779Qe57ahdAMQj+UVq3UmC8yTPm7WmLlAooi9bZe32ZeYm GSdtFg4IV8xlCsWWo3ZJlwfj9e6Ne7NcenCXRA1j5EcY8hk5RYx9f5iKYiPxeXPNlZki 4XxE4oiABRlT2OyWq0oiZ+GDp9Zw/mCXpe8HA9PpaVPNnSh/MFGZjN0qWc4dR/eB5D55 klHDOCV8BW4DDY43MyLYYhqmUvFF4R35+QNYfh7cm1IvxgncbZw7rpz+NuJi2myFDlZV 2uLO5EoB15EfMineRlroVbRhawpNOWjaYColiFCALJPrDR2bz5NzUOyoJMXMR8FEjIKB avnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=H19cGVXO; 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 y7si8021280pfw.370.2022.01.24.15.28.45; Mon, 24 Jan 2022 15:28:56 -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=H19cGVXO; 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 S1848773AbiAXXXQ (ORCPT + 99 others); Mon, 24 Jan 2022 18:23:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1835115AbiAXWfm (ORCPT ); Mon, 24 Jan 2022 17:35:42 -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 4CBEAC097FB7; Mon, 24 Jan 2022 12:58:11 -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 DDAAC61323; Mon, 24 Jan 2022 20:58:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B432CC340E5; Mon, 24 Jan 2022 20:58:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643057890; bh=Y3/oFE/QPkDB9XzitazqTYGIxNmsbbIZuW60fHLZWPE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=H19cGVXO6mot1dtSql1EZVt9Tb1k2fCva0iePIA2DGusrVn2MUDLrd6aQ3dqyo04h DSvYQtzrHGEcWm/BkK8LO97Q1H9RZl8oIxX5Pa/ZsXui20ycSKc9D3MfoVujx8PQSe C8XmCJO501dPZKSrvBLxt2IrC3x1kzcQtaQpmmGI= 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.16 0112/1039] wcn36xx: Release DMA channel descriptor allocations Date: Mon, 24 Jan 2022 19:31:41 +0100 Message-Id: <20220124184128.898293990@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184125.121143506@linuxfoundation.org> References: <20220124184125.121143506@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 0c4f63f1312f8..017c7d78072ba 100644 --- a/drivers/net/wireless/ath/wcn36xx/dxe.c +++ b/drivers/net/wireless/ath/wcn36xx/dxe.c @@ -1014,4 +1014,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