From nobody Sat Jun 13 13:14:31 2026 Received: from mailgw.kylinos.cn (mailgw.kylinos.cn [124.126.103.232]) (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 7CB6231A7EA; Thu, 7 May 2026 07:57:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=124.126.103.232 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778140683; cv=none; b=IJ2w7eflrOuiBOodz7yR7bnekVxUuPW4WURqTBxLI8b1yWNspWVeYUSJSJrFMctc3VGRTg4QSLC057W2reWgrqJPH4a0ck+jYLFTB2m0Zd08PwxWpueWmp9nMWLUFl+548qL5ap+FTP993sTqi89tPJPStmZoGH5+/6gteSCXm8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778140683; c=relaxed/simple; bh=TU7fOyqJKI2dP7Np91sqvULA8gE1BgrLVnHMdX2CgEQ=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=OIU+evozj+e8oe0I0CrIUqg2Q9wJdkd8qmruvcm2MsSg8N6xEJbJVSvrGe+Bh6uibL9vDBGi4h/joEG2ivNUo+1+MYQeoJ94X8Ic7OPvuYgZo4HTofqrusPG8LHR/u1Gt9BGbg8Qdce5xqrwgVMPnBM8+XSjqtOAde100k60m+c= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kylinos.cn; spf=pass smtp.mailfrom=kylinos.cn; arc=none smtp.client-ip=124.126.103.232 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kylinos.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kylinos.cn X-UUID: 743823b849ea11f1aa26b74ffac11d73-20260507 X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.3.12,REQID:4cfbfdf9-8dc8-44cf-84bc-1d75aeafdf15,IP:0,U RL:0,TC:0,Content:-5,EDM:-20,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTI ON:release,TS:-25 X-CID-META: VersionHash:e7bac3a,CLOUDID:b519801f3840dfe078992ae7bd414ad4,BulkI D:nil,BulkQuantity:0,Recheck:0,SF:102|850|898,TC:nil,Content:0|15|50,EDM:1 ,IP:nil,URL:0,File:nil,RT:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OSI:0,OSA:0,AV :0,LES:1,SPR:NO,DKR:0,DKP:0,BRR:0,BRE:0,ARC:0 X-CID-BVR: 2,SSN|SDN X-CID-BAS: 2,SSN|SDN,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR X-CID-RHF: D41D8CD98F00B204E9800998ECF8427E X-UUID: 743823b849ea11f1aa26b74ffac11d73-20260507 X-User: zenghongling@kylinos.cn Received: from localhost.localdomain [(10.44.16.150)] by mailgw.kylinos.cn (envelope-from ) (Generic MTA with TLSv1.3 TLS_AES_256_GCM_SHA384 256/256) with ESMTP id 1988758640; Thu, 07 May 2026 15:57:54 +0800 From: Hongling Zeng To: ludovic.desroches@microchip.com, vkoul@kernel.org, Frank.Li@kernel.org, djbw@kernel.org, nicolas.ferre@microchip.com, maciej.sosnowski@intel.com Cc: dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, zhongling0719@126.com, Hongling Zeng Subject: [PATCH] dma: at_hdmac: Fix IRQ leak in at_dma_probe() Date: Thu, 7 May 2026 15:57:50 +0800 Message-Id: <20260507075750.14310-1-zenghongling@kylinos.cn> X-Mailer: git-send-email 2.25.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 Content-Type: text/plain; charset="utf-8" When request_irq() succeeds but a later error occurs in at_dma_probe(), the error handling path attempts to free the IRQ by calling platform_get_irq() again instead of using the already stored IRQ number in the local variable 'irq'. Fix this by using the stored 'irq' variable directly in free_irq(). Fixes: dc78baa2b90b2 ("dmaengine: Atmel HDMAC driver") Signed-off-by: Hongling Zeng --- drivers/dma/at_hdmac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/at_hdmac.c b/drivers/dma/at_hdmac.c index e5b30a57c477..2a860679b9e1 100644 --- a/drivers/dma/at_hdmac.c +++ b/drivers/dma/at_hdmac.c @@ -2109,7 +2109,7 @@ static int __init at_dma_probe(struct platform_device= *pdev) err_memset_pool_create: dma_pool_destroy(atdma->lli_pool); err_desc_pool_create: - free_irq(platform_get_irq(pdev, 0), atdma); + free_irq(irq, atdma); err_irq: clk_disable_unprepare(atdma->clk); return err; --=20 2.25.1