diff options
author | 2023-10-10 21:48:58 +0900 | |
---|---|---|
committer | 2023-10-12 11:22:21 +0200 | |
commit | 053f13f67be6d02781730c9ac71abde6e9140610 (patch) | |
tree | dad47ca3b7f6cd6174c3a54d7ec0223482aeb7f1 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | rswitch: Fix renesas_eth_sw_remove() implementation (diff) | |
download | linux-rng-053f13f67be6d02781730c9ac71abde6e9140610.tar.xz linux-rng-053f13f67be6d02781730c9ac71abde6e9140610.zip |
rswitch: Fix imbalance phy_power_off() calling
The phy_power_off() should not be called if phy_power_on() failed.
So, add a condition .power_count before calls phy_power_off().
Fixes: 5cb630925b49 ("net: renesas: rswitch: Add phy_power_{on,off}() calling")
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions