* [PATCH] net: xilinx: fix memleak
@ 2013-08-26 3:30 Libo Chen
2013-08-28 22:25 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Libo Chen @ 2013-08-26 3:30 UTC (permalink / raw)
To: David Miller, anirudh, John.Linn; +Cc: netdev, LKML, Li Zefan
decrease device_node refcount np1 in err case.
Signed-off-by: Libo Chen <libo.chen@huawei.com>
---
drivers/net/ethernet/xilinx/xilinx_axienet_mdio.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/net/ethernet/xilinx/xilinx_axienet_mdio.c b/drivers/net/ethernet/xilinx/xilinx_axienet_mdio.c
index e90e1f4..64b4639 100644
--- a/drivers/net/ethernet/xilinx/xilinx_axienet_mdio.c
+++ b/drivers/net/ethernet/xilinx/xilinx_axienet_mdio.c
@@ -175,6 +175,7 @@ int axienet_mdio_setup(struct axienet_local *lp, struct device_node *np)
printk(KERN_WARNING "Setting MDIO clock divisor to "
"default %d\n", DEFAULT_CLOCK_DIVISOR);
clk_div = DEFAULT_CLOCK_DIVISOR;
+ of_node_put(np1);
goto issue;
}
--
1.7.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] net: xilinx: fix memleak
2013-08-26 3:30 [PATCH] net: xilinx: fix memleak Libo Chen
@ 2013-08-28 22:25 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2013-08-28 22:25 UTC (permalink / raw)
To: clbchenlibo.chen; +Cc: anirudh, John.Linn, netdev, linux-kernel, lizefan
From: Libo Chen <clbchenlibo.chen@huawei.com>
Date: Mon, 26 Aug 2013 11:30:55 +0800
>
> decrease device_node refcount np1 in err case.
>
> Signed-off-by: Libo Chen <libo.chen@huawei.com>
Applied, thank you.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-08-28 22:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-26 3:30 [PATCH] net: xilinx: fix memleak Libo Chen
2013-08-28 22:25 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).