aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_iface.c
diff options
context:
space:
mode:
authorMiaoqian Lin <[email protected]>2022-03-10 01:53:13 +0000
committerJakub Kicinski <[email protected]>2022-03-10 12:20:54 -0800
commit2ac5b58e645c66932438bb021cb5b52097ce70b0 (patch)
tree6d4869d50fb4092b713945126bd726fa26b10a7f /net/lapb/lapb_iface.c
parent5f147476057832b8f87461ff6da35b5d2e1c2c29 (diff)
gianfar: ethtool: Fix refcount leak in gfar_get_ts_info
The of_find_compatible_node() function returns a node pointer with refcount incremented, We should use of_node_put() on it when done Add the missing of_node_put() to release the refcount. Fixes: 7349a74ea75c ("net: ethernet: gianfar_ethtool: get phc index through drvdata") Signed-off-by: Miaoqian Lin <[email protected]> Reviewed-by: Jesse Brandeburg <[email protected]> Reviewed-by: Claudiu Manoil <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions