From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3E13728CF64 for ; Mon, 28 Apr 2025 17:13:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745860389; cv=none; b=RNuCZrE8BcpZygKxSUZvcvYXzXz9rmQ5cGF/E8X1f8nvTsO4fHTW+uiHgocmkcW5r2dyasBzWoXUFm0B4txTelun+N7uTnFjH63z9faGEJ7LLVIVzaEfRpYUuUaqHWsHR43S70/Tqafr8jAHo8B00FrawyYGE2aemLG5PkeaEV8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745860389; c=relaxed/simple; bh=2x4w8ZHyHY7c9oCuf/nnAqxtpBKNBbXi421fBp4VkWc=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=IXFbqK53wqVoHQE/Qb+z5FOGA/EuXmUWl99Kaup3WWi8kVn5Jbq+DXD5nj9k5PhPKKXTwAUvG0/CxJ/ZP9GouoJI4IRQQ4lCgKgHeWY+EaoSkct695P+ATHRbXV9/Ol5LnS3Fy9WwugXGC+1Q+o0WkhGHTgccw6gdd+F9xO3zHw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Hz9j2WJV; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Hz9j2WJV" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5A89CC4CEEC; Mon, 28 Apr 2025 17:13:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1745860388; bh=2x4w8ZHyHY7c9oCuf/nnAqxtpBKNBbXi421fBp4VkWc=; h=Subject:To:Cc:From:Date:From; b=Hz9j2WJV067iNnLFKLdU9wvRXjZHWJRf2A1+TocBT2FaQ9Ih44cvRe7BIgC1eSmmd mjtvTg22BBFSvS3sp26i2Nds3F6NixlmMMUGMTHUvmb2LrC3rAeNPDszLo2eQ/mRsI O6K1aetD2vqy1+s3cbR4NrJYzpd3qsoVcv8HclTk= Subject: FAILED: patch "[PATCH] comedi: jr3_pci: Fix synchronous deletion of timer" failed to apply to 6.14-stable tree To: abbotti@mev.co.uk,gregkh@linuxfoundation.org,stable@kernel.org Cc: From: Date: Mon, 28 Apr 2025 19:13:05 +0200 Message-ID: <2025042805-agonize-founder-450f@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit The patch below does not apply to the 6.14-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . To reproduce the conflict and resubmit, you may use the following commands: git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.14.y git checkout FETCH_HEAD git cherry-pick -x 44d9b3f584c59a606b521e7274e658d5b866c699 # git commit -s git send-email --to '' --in-reply-to '2025042805-agonize-founder-450f@gregkh' --subject-prefix 'PATCH 6.14.y' HEAD^.. Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From 44d9b3f584c59a606b521e7274e658d5b866c699 Mon Sep 17 00:00:00 2001 From: Ian Abbott Date: Tue, 15 Apr 2025 13:39:01 +0100 Subject: [PATCH] comedi: jr3_pci: Fix synchronous deletion of timer When `jr3_pci_detach()` is called during device removal, it calls `timer_delete_sync()` to stop the timer, but the timer expiry function always reschedules the timer, so the synchronization is ineffective. Call `timer_shutdown_sync()` instead. It does not matter that the timer expiry function pointer is cleared, because the device is being removed. Fixes: 07b509e6584a5 ("Staging: comedi: add jr3_pci driver") Cc: stable Signed-off-by: Ian Abbott Link: https://lore.kernel.org/r/20250415123901.13483-1-abbotti@mev.co.uk Signed-off-by: Greg Kroah-Hartman diff --git a/drivers/comedi/drivers/jr3_pci.c b/drivers/comedi/drivers/jr3_pci.c index cdc842b32bab..75dce1ff2419 100644 --- a/drivers/comedi/drivers/jr3_pci.c +++ b/drivers/comedi/drivers/jr3_pci.c @@ -758,7 +758,7 @@ static void jr3_pci_detach(struct comedi_device *dev) struct jr3_pci_dev_private *devpriv = dev->private; if (devpriv) - timer_delete_sync(&devpriv->timer); + timer_shutdown_sync(&devpriv->timer); comedi_pci_detach(dev); }