Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 282a1dff authored by Libo Chen's avatar Libo Chen Committed by David S. Miller
Browse files

net: xilinx: fix memleak



decrease device_node refcount np1 in err case.

Signed-off-by: default avatarLibo Chen <libo.chen@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 03803a59
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;
	}