Patch "pinctrl: sirf: atlas7: Add missing 'of_node_put()'" has been added to the 4.9-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
pinctrl: sirf: atlas7: Add missing 'of_node_put()'
to the 4.9-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
pinctrl-sirf-atlas7-add-missing-of_node_put.patch
and it can be found in the queue-4.9 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From foo@baz Tue Nov 28 10:49:28 CET 2017
From: Christophe JAILLET <[email protected]>
Date: Tue, 20 Dec 2016 06:40:43 +0100
Subject: pinctrl: sirf: atlas7: Add missing 'of_node_put()'
From: Christophe JAILLET <[email protected]>
[ Upstream commit 7af355e6715b325d8af29822f4c3dbecd7eeebec ]
Reference to 'sys2pci_np' should be dropped in all cases here, not only in error handling path.
--- drivers/pinctrl/sirf/pinctrl-atlas7.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
drivers/pinctrl/sirf/pinctrl-atlas7.c +4 -3
@@ -5420,14 +5420,15 @@ static int atlas7_pinmux_probe(struct pl sys2pci_np =of_find_node_by_name (NULL ,"sys2pci" );if (!sys2pci_np)return -EINVAL ; + ret =of_address_to_resource (sys2pci_np,0 , &res); +of_node_put (sys2pci_np);if (ret)return ret; + pmx->sys2pci_base =devm_ioremap_resource (&pdev->dev, &res); -if (IS_ERR (pmx->sys2pci_base)) { -of_node_put (sys2pci_np); +if (IS_ERR (pmx->sys2pci_base))return -ENOMEM ; - } pmx->dev = &pdev->dev;
Patches currently in stable-queue which might be from [email protected] are
queue-4.9/drm-sun4i-fix-a-return-value-in-case-of-error.patch queue-4.9/pinctrl-sirf-atlas7-add-missing-of_node_put.patch