diff options
author | Johan Hovold <[email protected]> | 2016-11-03 18:40:20 +0100 |
---|---|---|
committer | David S. Miller <[email protected]> | 2016-11-07 13:17:30 -0500 |
commit | c7262aaace1b17a650598063e3b9ee1785fde377 (patch) | |
tree | 71663e0ba7eeee15e58b969f67eb759d31f88812 /scripts/gdb/linux/utils.py | |
parent | 17ae1c650c1ecf8dc8e16d54b0f68a345965f43f (diff) |
net: ethernet: ti: cpsw: fix device and of_node leaks
Make sure to drop the references taken by of_get_child_by_name() and
bus_find_device() before returning from cpsw_phy_sel().
Note that holding a reference to the cpsw-phy-sel device does not
prevent the devres-managed private data from going away.
Fixes: 5892cd135e16 ("drivers: net: cpsw-phy-sel: Add new driver...")
Cc: Mugunthan V N <[email protected]>
Cc: Grygorii Strashko <[email protected]>
Cc: [email protected]
Signed-off-by: Johan Hovold <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions