From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 7495C348C47; Thu, 21 May 2026 09:50:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779357037; cv=none; b=cRlV5U4PlW02uz7/Dxw82o4JmTovFnbk7oI2m5e3UxaH7RR3IFuVfrbm01MycV0xfgzQf6rUa1dFGmsBl030wQph2NvbxhoISnl9ZgpDwoblrivVPGqzw5EfxqHUSP6vr+T0mpzmNm9LfMgIF8kmS8qv+RA7pTWRqWkeBT+UGsE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779357037; c=relaxed/simple; bh=p58c1kr5pIft51Q5AbM1cvZh5eRxn8vI7ieD6qQBpKE=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=rT0oFGkUjfAjGF1ewzV3MQ3NHoc5Fr7/c0wWut0Utu+AkT4wksJKEPzGyGZRif5Vw9yrtbrYcHqhuSsgUZGmJKPiWnRadeHqXLt5I1HW/+LQmQGmYH9acja1GH3wt4jttbFF1U4CzPvRDc7icMt9htiVdQsnBrwhZ0K9rspSYPE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=3dTcofzW; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=NjslMwgF; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="3dTcofzW"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="NjslMwgF" Date: Thu, 21 May 2026 09:50:33 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1779357035; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=GY3hBP0j/g6Zqf7hQy0V+jHCDPtaRfcyrFmqy2NEack=; b=3dTcofzWFhq5PsyyJaqBrlQ1jv77WflcBtTVjhBvVBab0UraoIouG+oNokFsjC7icxaizJ /QdSIQdwt7LKxdi1n5zlhh78ZPlWKCpVk3vCVnlLjYlYJOPlL8q5SvQSqgTCJbYd+tRS5S VpnjoRfG5IRPNg54Bw3cAjnUyNxOhz1u7pqqpCr0DNeWsuTgBDf7SX/8zvpfgX7x/U+kQJ RqyXnys+TCFE+VARcG55bX6jfYpx7INzZ2bNcQeCWZo545Ukn6MuM0isM/zB1UiBtf3GsR 9uY1W5Z/cNZT/xrK3BjJoTAEWkJHYGTS/2k5M/mUUJ517EuMnwb539wb4c/FYQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1779357035; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=GY3hBP0j/g6Zqf7hQy0V+jHCDPtaRfcyrFmqy2NEack=; b=NjslMwgFqp/u4UIhS0ppG/n3VoaZJjnXOe1VAzjRdIrlmBR+33EMfOWlCjmIw88BUZ7kKt YtdzeZg7LvJjIKAA== From: "tip-bot2 for Cosmin Tanislav" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: irq/urgent] irqchip/renesas-rzv2h: Unwind on setup error Cc: Cosmin Tanislav , Thomas Gleixner , x86@kernel.org, linux-kernel@vger.kernel.org, maz@kernel.org In-Reply-To: <20260520201736.1509741-1-cosmin-gabriel.tanislav.xa@renesas.com> References: <20260520201736.1509741-1-cosmin-gabriel.tanislav.xa@renesas.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <177935703340.711.10070410285638178038.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The following commit has been merged into the irq/urgent branch of tip: Commit-ID: 91f742be16497a435c929b3350d58b12acb16ce5 Gitweb: https://git.kernel.org/tip/91f742be16497a435c929b3350d58b12acb= 16ce5 Author: Cosmin Tanislav AuthorDate: Wed, 20 May 2026 23:17:36 +03:00 Committer: Thomas Gleixner CommitterDate: Thu, 21 May 2026 11:48:30 +02:00 irqchip/renesas-rzv2h: Unwind on setup error The call to rzv2h_icu_setup_irqs() may fail after the syscore ops have been registered and the interrupt domain has been created. In that case, only the runtime PM usage count is unwound. Unregister the syscore ops and remove the interrupt domain on this error path. Signed-off-by: Cosmin Tanislav Signed-off-by: Thomas Gleixner Link: https://patch.msgid.link/20260520201736.1509741-1-cosmin-gabriel.tanisl= av.xa@renesas.com --- drivers/irqchip/irq-renesas-rzv2h.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-renesas-rzv2h.c b/drivers/irqchip/irq-renesa= s-rzv2h.c index 31c543c..b11fa48 100644 --- a/drivers/irqchip/irq-renesas-rzv2h.c +++ b/drivers/irqchip/irq-renesas-rzv2h.c @@ -865,7 +865,7 @@ static int rzv2h_icu_probe_common(struct platform_device = *pdev, struct device_no =20 ret =3D rzv2h_icu_setup_irqs(pdev, irq_domain); if (ret) - goto pm_put; + goto unregister_syscore; =20 /* * coccicheck complains about a missing put_device call before returning, b= ut it's a false @@ -873,6 +873,9 @@ static int rzv2h_icu_probe_common(struct platform_device = *pdev, struct device_no */ return 0; =20 +unregister_syscore: + unregister_syscore(&rzv2h_irqc_syscore); + irq_domain_remove(irq_domain); pm_put: pm_runtime_put_sync(dev); return ret;