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 F1392223338 for ; Mon, 28 Apr 2025 17:13:33 +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=1745860414; cv=none; b=rfu4XRHja/RG8Dta2zeehkJ2ISMW5/gRXfqNzWpPITrdopx8TFbVpUQPkcwMD3NpYXZl250ee4odZO1lYkZIBWBSuMHzgSYdv2eNtSty3uamxs5PyzrpcYy9A8pN5yc9PMOANgDGhELIVPEuhUIZkNfhW0aTbqfx7XAYpb0SLZk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745860414; c=relaxed/simple; bh=2b22GBJiLT/M1X94JUYQjBg2dDUjj/ueYOKfiEsYRS4=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=S0QDsmfzUPHv+Q7NKHEkean2i8y/J6peC3oX/zfaJvoz/cTw6K7cPI8v4+Iv49YWbChL57mXIgk5HYQY4K4yD28Nh66ZuE4GrHOIURXvZVmOvC6o8E3s23fYNO0hmeQmnDd+YRc1lhFaWZ59fVEExnObjc5RrwdC5+IlviiU++k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=qo/zR5LD; 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="qo/zR5LD" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 07CF6C4CEE4; Mon, 28 Apr 2025 17:13:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1745860413; bh=2b22GBJiLT/M1X94JUYQjBg2dDUjj/ueYOKfiEsYRS4=; h=Subject:To:Cc:From:Date:From; b=qo/zR5LDQnRa669t9ngqT3X+o+9llY88/SGmD4SnQf7Y6Ay22CFjUnNxWegHhWGJz q/SIix7OvwG9pn316EZmf6xKD6h3TdkQGfej9T8uOEQ+Yams6PNaqELSTQz8zpy2g9 mg5u22JykBcmrE/ihwrg+sU8SCRokyQawbYpeTEE= Subject: FAILED: patch "[PATCH] comedi: jr3_pci: Fix synchronous deletion of timer" failed to apply to 5.10-stable tree To: abbotti@mev.co.uk,gregkh@linuxfoundation.org,stable@kernel.org Cc: From: Date: Mon, 28 Apr 2025 19:13:08 +0200 Message-ID: <2025042808-difficult-germicide-075a@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 5.10-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-5.10.y git checkout FETCH_HEAD git cherry-pick -x 44d9b3f584c59a606b521e7274e658d5b866c699 # git commit -s git send-email --to '' --in-reply-to '2025042808-difficult-germicide-075a@gregkh' --subject-prefix 'PATCH 5.10.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); }