From patchwork Tue Aug 15 14:28:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Antipov X-Patchwork-Id: 13353842 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id ADCE6C001B0 for ; Tue, 15 Aug 2023 14:30:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237619AbjHOO3o (ORCPT ); Tue, 15 Aug 2023 10:29:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55428 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237642AbjHOO3X (ORCPT ); Tue, 15 Aug 2023 10:29:23 -0400 Received: from forward101c.mail.yandex.net (forward101c.mail.yandex.net [IPv6:2a02:6b8:c03:500:1:45:d181:d101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4EB0719B5 for ; Tue, 15 Aug 2023 07:29:19 -0700 (PDT) Received: from mail-nwsmtp-smtp-production-main-84.iva.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-84.iva.yp-c.yandex.net [IPv6:2a02:6b8:c0c:332f:0:640:4ab4:0]) by forward101c.mail.yandex.net (Yandex) with ESMTP id BD8F360079; Tue, 15 Aug 2023 17:29:16 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-84.iva.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id FTgd4a6DUeA0-lkvzc8jR; Tue, 15 Aug 2023 17:29:16 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1692109756; bh=sPMQqh8yWZvZa8GRBThfnqzLa3bjeA0wO4DpVf7YW+0=; h=Message-ID:Date:Cc:Subject:To:From; b=LlqF0njj07zGghisb/PFl4bAXUichSviCD0Tos+NZr8nIZnvLIyVPzzbdPQY/0RsO f1+79J50tAUiYjasPE6sfNjY4JbHkqC9cQ7tSb0RJvZcP/d6rGSgvU1uS9PplZ5gCU Hw40UJlpRESjXU/UcCM7CTh2b99AGTtheaJ7OrrQ= Authentication-Results: mail-nwsmtp-smtp-production-main-84.iva.yp-c.yandex.net; dkim=pass header.i=@yandex.ru From: Dmitry Antipov To: Ping-Ke Shih Cc: Kalle Valo , linux-wireless@vger.kernel.org, Dmitry Antipov Subject: [PATCH] wifi: rtw88: add missing call to cancel_work_sync() Date: Tue, 15 Aug 2023 17:28:28 +0300 Message-ID: <20230815142908.92257-1-dmantipov@yandex.ru> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Add missing call to 'cancel_work_sync()' in 'rtw_core_stop()'. Fixes: 5c831644e1f4 ("rtw88: handle and recover when firmware crash") Signed-off-by: Dmitry Antipov --- drivers/net/wireless/realtek/rtw88/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/realtek/rtw88/main.c b/drivers/net/wireless/realtek/rtw88/main.c index 4a33d2e47f33..3a63dfc81d06 100644 --- a/drivers/net/wireless/realtek/rtw88/main.c +++ b/drivers/net/wireless/realtek/rtw88/main.c @@ -1522,6 +1522,7 @@ void rtw_core_stop(struct rtw_dev *rtwdev) mutex_unlock(&rtwdev->mutex); cancel_work_sync(&rtwdev->c2h_work); + cancel_work_sync(&rtwdev->fw_recovery_work); cancel_work_sync(&rtwdev->update_beacon_work); cancel_delayed_work_sync(&rtwdev->watch_dog_work); cancel_delayed_work_sync(&coex->bt_relink_work);