Received: by 2002:a05:6358:16cd:b0:dc:6189:e246 with SMTP id r13csp244509rwl; Thu, 3 Nov 2022 23:02:31 -0700 (PDT) X-Google-Smtp-Source: AMsMyM72Uxa3xzWWRnQ8vOehCRshF/rvCpX9w8yyMi/cz/cpJc0EduMHj9ZZ4jUtkFAvsa24TGTi X-Received: by 2002:aa7:c697:0:b0:462:a87b:52d with SMTP id n23-20020aa7c697000000b00462a87b052dmr34076671edq.361.1667541751004; Thu, 03 Nov 2022 23:02:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667541750; cv=none; d=google.com; s=arc-20160816; b=zw8xk0HT75cK6mi5SYWhCsLwuEc5/26dJIU0jkG96KKS/iYsIhZ1waXCvZyw535OUs Rq8+E1EnAG42I8kBi9jd/EcNMfTUa3G/0CWCxso5zJT2D5W/0nfUp4PzcmsRR4g+sf/v MuIklQBf8rL67ZnGlYwRsoAf+kYPvoD0JWLEdAYlWPgagetVCblxbCv9PlnnMuVB6ngK ZBonuS/60Y7FLgleD/FOb4/LYU6EvzERos+08ZtbFcRqF46XqJN5fMxKR49usalVKTGU ezVD/+MAw8p0K1k5q1H6R6BhA9EdXgbBBivyUp5qctzzNPyZNQCF57PnGQjpcdhSs5YZ fQYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:subject:cc:to:from:date :user-agent:message-id; bh=EkndezTUktA6Z6gGptsmErohFQ2EVqk5/96mO2A+9HE=; b=T37u4Za581a930SM8qgwwAaUihqLN1kPYF9+a6ySHHI4EPgG2n94A5lpc3njC/f0w9 bSrzIKEo92Em08ZsI798io6a81eluzj1v4FmaVj9eONkN59iecBW0l2Xf57hOg80XrbC LrnEWQCyOzatXwXXdtqKAeLkXB0Ua25TrD9sTnknEe+lUG7xp4mgnXVSE2Rv8soWRMwv CanqKt38nUS7SvMu8RyOw994PfIb6A9T7C4ZIJSXcSH+7fVIOV6c9s+9hyLBNrmEINJY my+PHBemoETkXO9Kj57EQiC+Y45fn9vUIQIOgk1xUbHB4S5/6SwaPHq0SDHfYDmTz5hq yVSA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cw11-20020a056402228b00b0045b965cf1dasi3308347edb.175.2022.11.03.23.02.07; Thu, 03 Nov 2022 23:02:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231759AbiKDFuX (ORCPT + 95 others); Fri, 4 Nov 2022 01:50:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231364AbiKDFsy (ORCPT ); Fri, 4 Nov 2022 01:48:54 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4561328E0C for ; Thu, 3 Nov 2022 22:48:53 -0700 (PDT) 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 E4906620DD for ; Fri, 4 Nov 2022 05:48:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C02EBC433C1; Fri, 4 Nov 2022 05:48:50 +0000 (UTC) Received: from rostedt by gandalf.local.home with local (Exim 4.96) (envelope-from ) id 1oqpZt-0071E9-17; Fri, 04 Nov 2022 01:49:17 -0400 Message-ID: <20221104054917.188768105@goodmis.org> User-Agent: quilt/0.66 Date: Fri, 04 Nov 2022 01:41:22 -0400 From: Steven Rostedt To: linux-kernel@vger.kernel.org Cc: Linus Torvalds , Thomas Gleixner , Stephen Boyd , Guenter Roeck , Anna-Maria Gleixner , Andrew Morton , Jaroslav Kysela , Takashi Iwai , Austin Kim , alsa-devel@alsa-project.org Subject: [RFC][PATCH v3 29/33] timers: ALSA: Use timer_shutdown_sync() before freeing timer References: <20221104054053.431922658@goodmis.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS 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-kernel@vger.kernel.org From: "Steven Rostedt (Google)" Before a timer is freed, timer_shutdown_sync() must be called. Link: https://lore.kernel.org/all/20220407161745.7d6754b3@gandalf.local.home/ Cc: Jaroslav Kysela Cc: Takashi Iwai Cc: Austin Kim Cc: alsa-devel@alsa-project.org Signed-off-by: Steven Rostedt (Google) --- sound/i2c/other/ak4117.c | 2 +- sound/synth/emux/emux.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/i2c/other/ak4117.c b/sound/i2c/other/ak4117.c index 1bc43e927d82..640501bb3ca6 100644 --- a/sound/i2c/other/ak4117.c +++ b/sound/i2c/other/ak4117.c @@ -47,7 +47,7 @@ static void reg_dump(struct ak4117 *ak4117) static void snd_ak4117_free(struct ak4117 *chip) { - del_timer_sync(&chip->timer); + timer_shutdown_sync(&chip->timer); kfree(chip); } diff --git a/sound/synth/emux/emux.c b/sound/synth/emux/emux.c index a870759d179e..0006c3ddb51d 100644 --- a/sound/synth/emux/emux.c +++ b/sound/synth/emux/emux.c @@ -129,7 +129,7 @@ int snd_emux_free(struct snd_emux *emu) if (! emu) return -EINVAL; - del_timer_sync(&emu->tlist); + timer_shutdown_sync(&emu->tlist); snd_emux_proc_free(emu); snd_emux_delete_virmidi(emu); -- 2.35.1