summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorDavid Daney <david.daney@cavium.com>2016-03-15 03:30:39 +0300
committerDavid S. Miller <davem@davemloft.net>2016-03-17 02:55:37 +0300
commitb7d3e3d3d21a09f8e45043d548224000a8efe06a (patch)
treefa226a278d8b74975bb064c94409f72f85b3898f /tools/perf/scripts/python/export-to-postgresql.py
parent9277a4f875adbeeb6209c0a3e3cf04c752522b2e (diff)
downloadlinux-b7d3e3d3d21a09f8e45043d548224000a8efe06a.tar.xz
net: thunderx: Don't leak phy device references on -EPROBE_DEFER condition.
It is possible, although unlikely, that probing will find the phy_device for the first LMAC of a thunder BGX device, but then need to fail with -EPROBE_DEFER on a subsequent LMAC. In this case, we need to call put_device() on each of the phy_devices that were obtained, but will be unused due to returning -EPROBE_DEFER. Also, since we can break out of the probing loop early, we need to explicitly call of_node_put() outside of the loop. Signed-off-by: David Daney <david.daney@cavium.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions