]> git.baikalelectronics.ru Git - kernel.git/commit
dpaa_eth: Fix missing of_node_put in dpaa_get_ts_info()
authorLv Ruyi <lv.ruyi@zte.com.cn>
Fri, 8 Apr 2022 09:49:41 +0000 (09:49 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 11 Apr 2022 11:02:33 +0000 (12:02 +0100)
commita4eecccf4a444fbd8950d499ce8875a8bfee8549
treebed6c6dd2e951da8464770ecdc586987a37be6eb
parentfa40b4f619467e855411787b0245c8c6593de2ee
dpaa_eth: Fix missing of_node_put in dpaa_get_ts_info()

Both of of_get_parent() and of_parse_phandle() return node pointer with
refcount incremented, use of_node_put() on it to decrease refcount
when done.

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Lv Ruyi <lv.ruyi@zte.com.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c