Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp923443rwd; Thu, 15 Jun 2023 04:09:14 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5Na+hxbKO5YVQSBrSyvSiIJttcOGAT/YW4vh44y0LkGrvzEymVCcLz0hppZUbIedxK/qVC X-Received: by 2002:a17:907:25c8:b0:978:4d7c:1db9 with SMTP id ae8-20020a17090725c800b009784d7c1db9mr17174782ejc.39.1686827354100; Thu, 15 Jun 2023 04:09:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686827354; cv=none; d=google.com; s=arc-20160816; b=rRUlCEaJE9QAPlbVLK6pbfyOHzqwqAM1c4dP5C/RliXEevdmiHil8ADvhwO5NLC9CH RU7ameIbf6sam7m3nqsfGLQ/yRGqXs0Nd7jUiL2mZnimA//2yW7bYTHiqc6RdnkA+q1k 6zclni8H/CcN5kirkY6hoqqSBTjj/WEMeYHCR4H/sem+fKabTwKaTi5uY1ey/ZTALnLF YBwNOQeoMaFd/rD9IUnNUpeWcFsYjGc4s/7VfgoIdGworUXQVm6V/r+11f7hdDN34uZe H+cYCw35fYglvc/7U4CR9mVPQqgsuZwYRFXDlw6K4BkMr7m+LWeIx8wgiIWPjACK2iXa ZaIg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=V2HJrsCs6LezQINjpZ43L79WHh8cF39LjN//JnIIIGI=; b=oduvXM1hMFSUyMrMGZcCMV+L9qaFwO0227q3s2lkVCbouwxsIBHq7QcZED/1yUL4Kc FM7YlVsc/aFvcOJNTXivAYJiXiBBgSGXlwwya7zUAvBhIBbibJwDB5po/luFpoV2OORe B2wJkJGqH5WKAY20iX3NU/i8lIwmGAFBY6eM1xeFqM22ui1D3zIqxC/91EqtQDFQQilU 79ySajnZmu8HIMga5RqI9h/IEESNoeTJbqbooLl79Fr0GabqqcIvLhQUkysqNwzyFyUe x7gckUqPVRSCNz1F7eY5NXw5WTEZfyCFjJMT5exhNXEPQcuQssGDaMuCZjhRuHeHbttB C8AQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@yandex.ru header.s=mail header.b=iDtVPec9; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o10-20020a1709061d4a00b00977d0f093b5si9723678ejh.556.2023.06.15.04.08.54; Thu, 15 Jun 2023 04:09:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@yandex.ru header.s=mail header.b=iDtVPec9; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245520AbjFOLFw (ORCPT + 61 others); Thu, 15 Jun 2023 07:05:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36066 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245368AbjFOLFu (ORCPT ); Thu, 15 Jun 2023 07:05:50 -0400 Received: from forward103a.mail.yandex.net (forward103a.mail.yandex.net [IPv6:2a02:6b8:c0e:500:1:45:d181:d103]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3ED902949 for ; Thu, 15 Jun 2023 04:05:43 -0700 (PDT) Received: from mail-nwsmtp-smtp-production-main-39.vla.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-39.vla.yp-c.yandex.net [IPv6:2a02:6b8:c0d:31b:0:640:fdf8:0]) by forward103a.mail.yandex.net (Yandex) with ESMTP id 3B5D846C6A; Thu, 15 Jun 2023 14:05:42 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-39.vla.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id M5asqACDS8c0-z9MLPaUz; Thu, 15 Jun 2023 14:05:41 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1686827142; bh=V2HJrsCs6LezQINjpZ43L79WHh8cF39LjN//JnIIIGI=; h=Message-Id:Date:Cc:Subject:To:From; b=iDtVPec9OeyQeq4R66gl86sG71DcOCbHLfnpRwAuGAXo4pVSUrRNodFmRv7Iw3rIY RFnsjBhKK5er0j7ElPjxpp4IrqOg0Z9OulSwp9O6AEejzlCjZBwqTF07SPpfNZGCoa oR1/IgEq/EC1LSeWJbDmlaNvE69s57r1Z/xKM1EI= Authentication-Results: mail-nwsmtp-smtp-production-main-39.vla.yp-c.yandex.net; dkim=pass header.i=@yandex.ru From: Dmitry Antipov To: Yan-Hsuan Chuang Cc: Kalle Valo , linux-wireless@vger.kernel.org, Dmitry Antipov Subject: [PATCH] wifi: rtw89: delete timer and free skb queue when unloading Date: Thu, 15 Jun 2023 14:05:19 +0300 Message-Id: <20230615110519.61687-1-dmantipov@yandex.ru> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Delete TX purge timer and free C2H queue in 'rtw_core_deinit()'. Signed-off-by: Dmitry Antipov --- drivers/net/wireless/realtek/rtw88/main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/wireless/realtek/rtw88/main.c b/drivers/net/wireless/realtek/rtw88/main.c index 9447a3aae3b5..572fc126b9de 100644 --- a/drivers/net/wireless/realtek/rtw88/main.c +++ b/drivers/net/wireless/realtek/rtw88/main.c @@ -2180,9 +2180,11 @@ void rtw_core_deinit(struct rtw_dev *rtwdev) release_firmware(wow_fw->firmware); destroy_workqueue(rtwdev->tx_wq); + timer_delete_sync(&rtwdev->tx_report.purge_timer); spin_lock_irqsave(&rtwdev->tx_report.q_lock, flags); skb_queue_purge(&rtwdev->tx_report.queue); skb_queue_purge(&rtwdev->coex.queue); + skb_queue_purge(&rtwdev->c2h_queue); spin_unlock_irqrestore(&rtwdev->tx_report.q_lock, flags); list_for_each_entry_safe(rsvd_pkt, tmp, &rtwdev->rsvd_page_list, -- 2.40.1