Patch "stmmac: add missing of_node_put" has been added to the 4.9-stable tree
Subsystems (4)
This is a note to let you know that I've just added the patch titled
stmmac: 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:
stmmac-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 Mon Jul 3 11:12:14 CEST 2017
From: Julia Lawall <[email protected]>
Date: Tue, 17 Jan 2017 12:23:21 +0100
Subject: stmmac: add missing of_node_put
From: Julia Lawall <[email protected]>
[ Upstream commit a249708bc2aa1fe3ddf15dfac22bee519d15996b ]
The function stmmac_dt_phy provides several possibilities for initializing plat->mdio_node, all of which have the effect of increasing the reference count of the assigned value. This field is not updated elsewhere, so the value is live until the end of the lifetime of plat (devm_allocated), just after the end of stmmac_remove_config_dt. Thus, add an of_node_put on plat->mdio_node in stmmac_remove_config_dt. It is possible that the field mdio_node is never initialized, but of_node_put is NULL-safe, so it is also safe to call of_node_put in that case.
--- drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c | 1 + 1 file changed, 1 insertion(+)
drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c +1 -0
@@ -346,6 +346,7 @@ void stmmac_remove_config_dt(struct platif (of_phy_is_fixed_link (np))of_phy_deregister_fixed_link (np);of_node_put (plat->phy_node); +of_node_put (plat->mdio_node); }#else struct plat_stmmacenet_data *
Patches currently in stable-queue which might be from [email protected] are
queue-4.9/stmmac-add-missing-of_node_put.patch queue-4.9/net-phy-fix-sign-type-error-in-genphy_config_eee_advert.patch