From nobody Sat Jul 25 03:46:06 2026 Received: from mail-m155101.qiye.163.com (mail-m155101.qiye.163.com [101.71.155.101]) (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 1B3A325B09D for ; Sun, 19 Jul 2026 14:43:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=101.71.155.101 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784472237; cv=none; b=tW9jmlOsrwgxz3cGrTxdsValHc0vWfhjGh+fBVkiWDCquWM+CUFpDV6XXVqtFtfdq9IDVTPtmOXuWwukJHW+e20/vfkrlzyvMn4jhSYgzCFVHMKqfIJ+SVzKNK39CAaEtXsEj+2SCMCuebNZAgy/9Qv2+rBahPlOHWjAj7/9e1I= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784472237; c=relaxed/simple; bh=cSBO6+arf5H9Y1hnNSzIQw++drhQXugXE/moxKKh11w=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=kHoGNReQ9vBfnVwHBw7lrBjioObb8AcRprS2G76gXiykxR4/b6CJfdW7T3qkiU1/+jOV7TqT9UXxs9cvd7VFjZ2cAMMBIpEm1DH2ZC1pM0+Ctc4d1yOiHadEJqzwJV+dNd8pBmWXev7eeC/td+WbA2sJ1LlAt2ZH8x+zDK7Gia0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=seu.edu.cn; spf=pass smtp.mailfrom=seu.edu.cn; dkim=pass (1024-bit key) header.d=seu.edu.cn header.i=@seu.edu.cn header.b=JqBEpBHn; arc=none smtp.client-ip=101.71.155.101 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=seu.edu.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=seu.edu.cn Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=seu.edu.cn header.i=@seu.edu.cn header.b="JqBEpBHn" Received: from LAPTOP-99KJFSET (unknown [222.191.246.242]) by smtp.qiye.163.com (Hmail) with ESMTP id 46bb6c3c9; Sun, 19 Jul 2026 22:43:45 +0800 (GMT+08:00) From: Hongyan Xu To: myungjoo.ham@samsung.com, cw00.choi@samsung.com Cc: linux-kernel@vger.kernel.org, jianhao.xu@seu.edu.cn, getshell@seu.edu.cn Subject: [PATCH] extcon: adc-jack: cancel delayed work on remove Date: Sun, 19 Jul 2026 22:43:43 +0800 Message-ID: <20260719144343.1161-1-getshell@seu.edu.cn> X-Mailer: git-send-email 2.50.1.windows.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-HM-Tid: 0a9f7ad5459603a1kunm98b4972895544 X-HM-MType: 10 X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFITzdXWRgWCB1ZQUpXWS1ZQUlXWQ8JGhUIEh9ZQVlDSx0eVklMSR9NGRpPTR4eS1YeHw 5VEwETFhoSFyQUDg9ZV1kYEgtZQVlJSUlVSkJKVUlPTVVJT0lZV1kWGg8SFR0UWUFZT0tIVUpLSU hOQ0NVSktLVUtZBg++ DKIM-Signature: a=rsa-sha256; b=JqBEpBHnaPztD12cokZmQIgVUxrjiIxJYZ5LshecBDNh5Er1rBjTiAW8saRCfTHsNzg4mG7dLWBt5qo1C9FuUVkartWYLMX5Hyhi3tIz6/h4l+O8czucUoGFHhdRC4JCzB9QMa7JWTIJ/Y4Rpsv5+aiGPy4NNtg/UkX0ZrnunkI=; s=default; c=relaxed/relaxed; d=seu.edu.cn; v=1; bh=0jwzruv1eQTQ1VmOJcZhs521SuWdqNgFvg53/VxXXuc=; h=date:mime-version:subject:message-id:from; Content-Type: text/plain; charset="utf-8" The IRQ handler queues handler as delayed work. The remove callback passes its embedded work_struct to cancel_work_sync(), which cannot cancel a pending delayed-work timer. Free the IRQ to stop new queueing, then cancel the delayed work itself before devres releases the containing object. Signed-off-by: Hongyan Xu --- drivers/extcon/extcon-adc-jack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/extcon/extcon-adc-jack.c b/drivers/extcon/extcon-adc-j= ack.c index 0317b61..25ee38d 100644 --- a/drivers/extcon/extcon-adc-jack.c +++ b/drivers/extcon/extcon-adc-jack.c @@ -163,7 +163,7 @@ static int adc_jack_remove(struct platform_device *pdev) struct adc_jack_data *data =3D platform_get_drvdata(pdev); =20 free_irq(data->irq, data); - cancel_work_sync(&data->handler.work); + cancel_delayed_work_sync(&data->handler); =20 return 0; } --=20 2.50.1.windows.1