]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
misc: rp1: Fix an error handling path in rp1_probe()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sat, 8 Nov 2025 07:14:04 +0000 (08:14 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Nov 2025 14:09:49 +0000 (15:09 +0100)
commit43cd4b634ef90c4e2ff75eaeb361786fa04c8874
tree28325b546079d9d92824be435d86e6aaf47ca7eb
parent85e83789582ff478888b9c9f904a9203660544af
misc: rp1: Fix an error handling path in rp1_probe()

When DT is used to get the reference of 'rp1_node', it should be released
when not needed anymore, otherwise it is leaking.

In such a case, add the missing of_node_put() call at the end of the probe,
as already done in the error handling path.

Fixes: 49d63971f963 ("misc: rp1: RaspberryPi RP1 misc driver")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Andrea della Porta <andrea.porta@suse.com>
Link: https://patch.msgid.link/9bc1206de787fa86384f3e5ba0a8027947bc00ff.1762585959.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/rp1/rp1_pci.c