summaryrefslogtreecommitdiff
path: root/drivers/thermal/spear_thermal.c
diff options
context:
space:
mode:
authorQinglang Miao <miaoqinglang@huawei.com>2020-12-01 17:31:41 +0800
committerWolfram Sang <wsa@kernel.org>2021-04-14 09:49:13 +0200
commit47ff617217ca6a13194fcb35c6c3a0c57c080693 (patch)
treed9568d17133dae71c253626c5e67ac49f27f49e9 /drivers/thermal/spear_thermal.c
parent278e5bbdb9a94fa063c0f9bcde2479d0b8042462 (diff)
i2c: imx: fix reference leak when pm_runtime_get_sync fails
In i2c_imx_xfer() and i2c_imx_remove(), the pm reference count is not expected to be incremented on return. However, pm_runtime_get_sync will increment pm reference count even failed. Forgetting to putting operation will result in a reference leak here. Replace it with pm_runtime_resume_and_get to keep usage counter balanced. Fixes: 3a5ee18d2a32 ("i2c: imx: implement master_xfer_atomic callback") Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Qinglang Miao <miaoqinglang@huawei.com> Reviewed-by: Oleksij Rempel <o.rempel@pengutronix.de> Signed-off-by: Wolfram Sang <wsa@kernel.org>
Diffstat (limited to 'drivers/thermal/spear_thermal.c')
0 files changed, 0 insertions, 0 deletions