summaryrefslogtreecommitdiff
path: root/net/tipc/sysctl.c
diff options
context:
space:
mode:
authorHeiner Kallweit <hkallweit1@gmail.com>2021-12-15 11:14:23 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-01-11 15:35:16 +0100
commitb381e0f98711908b4f23865e76ebc8232f355499 (patch)
tree0c3042eff98adafbf39f0d6ee343ac4448396ea3 /net/tipc/sysctl.c
parent550acd770f9f72c7547ffb1900401e73b48a91b6 (diff)
reset: renesas: Fix Runtime PM usage
commit 92c959bae2e54ba1e2540ba5f813f7752bd76be1 upstream. If pm_runtime_resume_and_get() fails then it returns w/o the RPM usage counter being incremented. In this case call pm_runtime_put() in remove() will result in a usage counter imbalance. Therefore check the return code of pm_runtime_resume_and_get() and bail out in case of error. Fixes: bee08559701f ("reset: renesas: Add RZ/G2L usbphy control driver") Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Reviewed-by: Biju Das <biju.das.jz@bp.renesas.com> Link: https://lore.kernel.org/r/ec24e13f-0530-b091-7a08-864577b9b3be@gmail.com Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/tipc/sysctl.c')
0 files changed, 0 insertions, 0 deletions