]> git.baikalelectronics.ru Git - kernel.git/commit
ethernet: fman: fix wrong of_node_put() in probe function
authorNicolas Saenz Julienne <nsaenzjulienne@suse.de>
Mon, 3 Dec 2018 12:21:01 +0000 (13:21 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 5 Dec 2018 04:42:35 +0000 (20:42 -0800)
commitf723ef0bfa54f92b2ffd50ce88551766fe0f7e1c
treec135bc75df1285eb58465a4430c86ef472624e1d
parentc229ee8305853eddf93dbd15645ab2afbdad8fd6
ethernet: fman: fix wrong of_node_put() in probe function

After getting a reference to the platform device's of_node the probe
function ends up calling of_find_matching_node() using the node as an
argument. The function takes care of decreasing the refcount on it. We
are then incorrectly decreasing the refcount on that node again.

This patch removes the unwarranted call to of_node_put().

Fixes: 47772c970c20 ("fsl/fman: Add FMan support")
Signed-off-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/fman/fman.c