Skip to content
Commit 7e372c7c authored by Herve Codina's avatar Herve Codina Committed by Greg Kroah-Hartman
Browse files

irqdomain: Fixed unbalanced fwnode get and put

[ Upstream commit 6ce3e981 ]

fwnode_handle_get(fwnode) is called when a domain is created with fwnode
passed as a function parameter. fwnode_handle_put(domain->fwnode) is called
when the domain is destroyed but during the creation a path exists that
does not set domain->fwnode.

If this path is taken, the fwnode get will never be put.

To avoid the unbalanced get and put, set domain->fwnode unconditionally.

Fixes: d59f6617

 ("genirq: Allow fwnode to carry name information only")
Signed-off-by: default avatarHerve Codina <herve.codina@bootlin.com>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20240614173232.1184015-4-herve.codina@bootlin.com
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 5fd05716
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment