summaryrefslogtreecommitdiff
path: root/include/linux/pm_runtime.h
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2020-05-21 20:08:09 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2020-05-26 11:53:13 +0300
commit64c7d7ea22d86cacb65d0c097cc447bc0e6d8abd (patch)
tree1bf684e2099c121f791d207d6a39d88e077036b4 /include/linux/pm_runtime.h
parent3618bbaaa898cf48e859736120a775fcb56f3838 (diff)
downloadlinux-64c7d7ea22d86cacb65d0c097cc447bc0e6d8abd.tar.xz
PM: runtime: clk: Fix clk_pm_runtime_get() error path
clk_pm_runtime_get() assumes that the PM-runtime usage counter will be dropped by pm_runtime_get_sync() on errors, which is not the case, so PM-runtime references to devices acquired by the former are leaked on errors returned by the latter. Fix this by modifying clk_pm_runtime_get() to drop the reference if pm_runtime_get_sync() returns an error. Fixes: 9a34b45397e5 clk: Add support for runtime PM Cc: 4.15+ <stable@vger.kernel.org> # 4.15+ Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'include/linux/pm_runtime.h')
0 files changed, 0 insertions, 0 deletions