]> git.baikalelectronics.ru Git - kernel.git/commit
net: sungem_phy: Add of_node_put() for reference returned by of_get_parent()
authorLiang He <windhl@126.com>
Wed, 20 Jul 2022 13:10:03 +0000 (21:10 +0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 22 Jul 2022 02:04:19 +0000 (19:04 -0700)
commit6232f5fa0371a886b14f26e1fd5b31a037dc810b
tree04ec77f7b582bfdb68e3b14404dea64f230308d9
parentb205a7783aa346128d9f6bb0d5f35c68f4a42c71
net: sungem_phy: Add of_node_put() for reference returned by of_get_parent()

In bcm5421_init(), we should call of_node_put() for the reference
returned by of_get_parent() which has increased the refcount.

Fixes: a97e737db55a ("[PATCH] ppc64: Add new PHY to sungem")
Signed-off-by: Liang He <windhl@126.com>
Link: https://lore.kernel.org/r/20220720131003.1287426-1-windhl@126.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/sungem_phy.c