Received: by 2002:a05:6358:16cd:b0:dc:6189:e246 with SMTP id r13csp265301rwl; Thu, 3 Nov 2022 23:21:58 -0700 (PDT) X-Google-Smtp-Source: AMsMyM60CffISKDhKpk01CktD+PEdQRjXYCP0bNNAoYa8pFVTU2lXHWDIZ3mXQgVEXAbC9n1D5dd X-Received: by 2002:a63:db58:0:b0:443:575e:d1ed with SMTP id x24-20020a63db58000000b00443575ed1edmr28837941pgi.468.1667542918060; Thu, 03 Nov 2022 23:21:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667542918; cv=none; d=google.com; s=arc-20160816; b=fLkpMMpBpwUporAmNXlsN0cQGG4Oa0zRHsFMjKVch6tzqpfROpbwMaJT3cX1Kx8Gao aHx++ryESq31P8lTT52Zghml4jJGfTpfkKgr8aJhFF1Z88kfXfBpqdqhgSVE8l+Brh0C VgrkPOFTZlbhBaQKf7qg1Du8dtWcH6/fErqRYAQG23d4QQkMWM/B2wsv1rRhAuh/gt7X mT2gDBmFBgCNccdEmW3G63ISkaq6pjSmrW+KaBrB75LdTTglSjk4YUQarC3Nia1flTmH nCwwlG3cm6CYVpYuyBF9cIZoiiJUjHx/06IwTnGpWmevAbonAJLuSCJr2qX/rT7jW/0G c39g== 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 :references:in-reply-to:message-id:subject:cc:to:from:date; bh=ATN9StM68zTSmxOJBZDgFSi4FSlOq1aO2VHGGTdxgo4=; b=oJ/ajkL4shSjC+QKxbUIFkGqDqTgUSXZKvecXaTy0AE2MmUO4tH0jzE3FLxbNCvfRS UOuV9WJwRWZMtdGNWc/O4GAOuIgUkFlfYzcrzIRyA7ilZPrUDbHf1rK6Q4NwNCs7yGdd G0iUrdBj8Fy6qLDRebkFCHMIt0N5VvtowjLF+QtsG9CPZlkQ+EHOKcUsbRy2O+BxyuoT XFKak+fACV6PzAxeRUKXCbFJn5fLvs8c8tr7shsP4o0kfX5KNKHS5Xu/2jkeDuyJgvfH VVe9Jsw9+ya7GqvDwJDgRCoAKOFyJmLkhxrYJYmo5mR6/fQGFVx8uBnRq4+dQD2G4A2H jAnQ== 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 m17-20020a170902db1100b001871c762263si3899611plx.185.2022.11.03.23.21.46; Thu, 03 Nov 2022 23:21:58 -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 S231205AbiKDF5X convert rfc822-to-8bit (ORCPT + 95 others); Fri, 4 Nov 2022 01:57:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36502 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231417AbiKDF4k (ORCPT ); Fri, 4 Nov 2022 01:56:40 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC7A427B2E; Thu, 3 Nov 2022 22:54: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 6C95AB82BFB; Fri, 4 Nov 2022 05:54:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9CCCBC433C1; Fri, 4 Nov 2022 05:54:45 +0000 (UTC) Date: Fri, 4 Nov 2022 01:54:44 -0400 From: Steven Rostedt To: linux-kernel@vger.kernel.org Cc: Linus Torvalds , Thomas Gleixner , Stephen Boyd , Guenter Roeck , Anna-Maria Gleixner , Andrew Morton , Sumit Semwal , Christian =?UTF-8?B?S8O2bmln?= , linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org Subject: Re: [RFC][PATCH v3 12/33] timers: dma-buf: Use timer_shutdown_sync() before freeing timer Message-ID: <20221104015444.57f73efb@rorschach.local.home> In-Reply-To: <20221104054914.085569465@goodmis.org> References: <20221104054053.431922658@goodmis.org> <20221104054914.085569465@goodmis.org> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT 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 [ Once again, quilt fails the MIME coding ] 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: Sumit Semwal Cc: "Christian König" Cc: linux-media@vger.kernel.org Cc: dri-devel@lists.freedesktop.org Cc: linaro-mm-sig@lists.linaro.org Signed-off-by: Steven Rostedt (Google) --- drivers/dma-buf/st-dma-fence.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma-buf/st-dma-fence.c b/drivers/dma-buf/st-dma-fence.c index fb6e0a6ae2c9..5d3e7b503501 100644 --- a/drivers/dma-buf/st-dma-fence.c +++ b/drivers/dma-buf/st-dma-fence.c @@ -412,7 +412,7 @@ static int test_wait_timeout(void *arg) err = 0; err_free: - del_timer_sync(&wt.timer); + timer_shutdown_sync(&wt.timer); destroy_timer_on_stack(&wt.timer); dma_fence_signal(wt.f); dma_fence_put(wt.f); -- 2.35.1