aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorYoshihiro Shimoda <[email protected]>2023-10-10 21:48:58 +0900
committerPaolo Abeni <[email protected]>2023-10-12 11:22:21 +0200
commit053f13f67be6d02781730c9ac71abde6e9140610 (patch)
treedad47ca3b7f6cd6174c3a54d7ec0223482aeb7f1 /lib/test_fortify/write_overflow-strncpy-src.c
parent510b18cf23b9bd8a982ef7f1fb19f3968a2bf787 (diff)
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 <[email protected]> Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions