Message ID | 20221104054912.425376037@goodmis.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp190554wru; Thu, 3 Nov 2022 22:50:22 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4TyVh5DQe1GzkkvGwiR1pPkDr+AVBgQDu8k2bcMa+SLQH3eAiQyuRA1G0JefRCtv4N4tet X-Received: by 2002:a17:907:86a0:b0:78d:df8b:4d17 with SMTP id qa32-20020a17090786a000b0078ddf8b4d17mr31947480ejc.254.1667541022594; Thu, 03 Nov 2022 22:50:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667541022; cv=none; d=google.com; s=arc-20160816; b=zBIcoCLk8Swy/6fQTVKyB0Do9PzLDAHyyv9RPsdmMw3LxQO2k70Aoh7+8TqsiAo8pm VS1pQzcisANQh6qiz8HvQj3EVxdVbBAXrQv6Jbn2QQKJo4bqaqqaVGAgl1JYLazhOPlz c6H7sQvRVUIn/MU1MS0/p47PNPH+b+2Ce40pccq7QNH5tJCfuFouDDM96rnPHGnm39gn YWnPAcKcLvQEns+sCHy7uSqyPYoKa8sCJFeDB7Ffk+2YNBGUIoWoS7zgWB1YLAS5fUKO bBH8mzQA0X21fg7TNoOVpscPGWx2Sk1Du0XhKKEkFzHvGfE8s0X12LKFZ8attdpNcdX8 oT9A== 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=7jJrdDnAvXHvXaTRMv9XL/MWovLHnGjFUg7NapSOAcE=; b=hrzdMsIMjCy7D2InaYHHFeww1pEv0/QeFTZO5PIM+XOVgMptGDrFZm/+B8fx2qOkIi DXJY+vCng4Jvi7GaUwaunzrBFgQhrpov8RiUGuuoHlMWF3g6/l968yYYureGb8MQJIVl AVPbGQJYJO85zKu7+JpRmdzH0INjjd5OX165bBCzmzFRptEF24t5pbCGVllfmXi0tFHD N/xygufuexGNtSoGVOvNl5EgpvP+mi+yhzFew3Exha9LM3Lr+9JoDWeckKBQPqFogOp1 LGvvtgeeIYrONVbvRfflGq12UP9WI306PSWT9rwQtHKWISBWZMeR7fS6vr6Ys7d5uJzc kIEA== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b3-20020a170906728300b007a44a13536bsi3628860ejl.243.2022.11.03.22.49.58; Thu, 03 Nov 2022 22:50:22 -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 S231485AbiKDFtS (ORCPT <rfc822;jimliu8233@gmail.com> + 99 others); Fri, 4 Nov 2022 01:49:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55570 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230358AbiKDFsu (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 4 Nov 2022 01:48:50 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 24F343898; Thu, 3 Nov 2022 22:48:48 -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 ams.source.kernel.org (Postfix) with ESMTPS id A9B6FB82BFB; Fri, 4 Nov 2022 05:48:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 60619C43141; Fri, 4 Nov 2022 05:48:46 +0000 (UTC) Received: from rostedt by gandalf.local.home with local (Exim 4.96) (envelope-from <rostedt@goodmis.org>) id 1oqpZo-0070zT-1v; Fri, 04 Nov 2022 01:49:12 -0400 Message-ID: <20221104054912.425376037@goodmis.org> User-Agent: quilt/0.66 Date: Fri, 04 Nov 2022 01:40:56 -0400 From: Steven Rostedt <rostedt@goodmis.org> To: linux-kernel@vger.kernel.org Cc: Linus Torvalds <torvalds@linux-foundation.org>, Thomas Gleixner <tglx@linutronix.de>, Stephen Boyd <sboyd@kernel.org>, Guenter Roeck <linux@roeck-us.net>, Anna-Maria Gleixner <anna-maria@linutronix.de>, Andrew Morton <akpm@linux-foundation.org>, Yoshinori Sato <ysato@users.sourceforge.jp>, Rich Felker <dalias@libc.org>, linux-sh@vger.kernel.org Subject: [RFC][PATCH v3 03/33] timers: sh: 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748543495170493424?= X-GMAIL-MSGID: =?utf-8?q?1748543495170493424?= |
Series |
timers: Use timer_shutdown*() before freeing timers
|
|
Commit Message
Steven Rostedt
Nov. 4, 2022, 5:40 a.m. UTC
From: "Steven Rostedt (Google)" <rostedt@goodmis.org> Before a timer is freed, timer_shutdown_sync() must be called. Link: https://lore.kernel.org/all/20220407161745.7d6754b3@gandalf.local.home/ Cc: Yoshinori Sato <ysato@users.sourceforge.jp> Cc: Rich Felker <dalias@libc.org> Cc: linux-sh@vger.kernel.org Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org> --- arch/sh/drivers/push-switch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/sh/drivers/push-switch.c b/arch/sh/drivers/push-switch.c index 2813140fd92b..c95f48ff3f6f 100644 --- a/arch/sh/drivers/push-switch.c +++ b/arch/sh/drivers/push-switch.c @@ -102,7 +102,7 @@ static int switch_drv_remove(struct platform_device *pdev) platform_set_drvdata(pdev, NULL); flush_work(&psw->work); - del_timer_sync(&psw->debounce); + timer_shutdown_sync(&psw->debounce); free_irq(irq, pdev); kfree(psw);