lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Sat, 20 Aug 2016 15:26:55 +0000 From: Wei Yongjun <weiyj.lk@...il.com> To: f.fainelli@...il.com, michal.simek@...inx.com, soren.brinkmann@...inx.com Cc: Wei Yongjun <weiyj.lk@...il.com>, netdev@...r.kernel.org, linux-arm-kernel@...ts.infradead.org Subject: [PATCH -next] net: phy: Add missing of_node_put() in xgmiitorgmii_probe() This node pointer is returned by of_parse_phandle() with refcount incremented in this function. of_node_put() on it before exitting this function. This is detected by Coccinelle semantic patch. Signed-off-by: Wei Yongjun <weiyj.lk@...il.com> --- drivers/net/phy/xilinx_gmii2rgmii.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/phy/xilinx_gmii2rgmii.c b/drivers/net/phy/xilinx_gmii2rgmii.c index cad6e19..4f05e5e 100644 --- a/drivers/net/phy/xilinx_gmii2rgmii.c +++ b/drivers/net/phy/xilinx_gmii2rgmii.c @@ -75,6 +75,7 @@ int xgmiitorgmii_probe(struct mdio_device *mdiodev) priv->phy_dev = of_phy_find_device(phy_node); if (!priv->phy_dev) { dev_info(dev, "Couldn't find phydev\n"); + of_node_put(phy_node); return -EPROBE_DEFER; }
Powered by blists - more mailing lists