Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
i2c: imx: Fix PM reference leak in i2c_imx_reg_slave()
[ Upstream commit c4b1fcc ] pm_runtime_get_sync() will increment the PM reference count even on failure. Forgetting to put the reference again will result in a leak. Replace it with pm_runtime_resume_and_get() to keep the usage counter balanced. Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Ye Weihua <yeweihua4@huawei.com> Signed-off-by: Wolfram Sang <wsa@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
- Loading branch information