-
由 Zhang Qilong 提交于
stable inclusion from stable-5.10.4 commit 92b6415e977cc30a8c94adddfd1166d46c568362 bugzilla: 46903 -------------------------------- [ Upstream commit c02bb16b ] pm_runtime_get_sync will increment pm usage counter even it failed. Forgetting to pm_runtime_put_noidle will result in reference leak in spi_mem_access_start, so we should fix it. Fixes: f86c24f4 ("spi: spi-mem: Split spi_mem_exec_op() code") Signed-off-by: NZhang Qilong <zhangqilong3@huawei.com> Link: https://lore.kernel.org/r/20201103140910.3482-1-zhangqilong3@huawei.comSigned-off-by: NMark Brown <broonie@kernel.org> Signed-off-by: NSasha Levin <sashal@kernel.org> Signed-off-by: NChen Jun <chenjun102@huawei.com> Acked-by: NXie XiuQi <xiexiuqi@huawei.com>
cd8e3219