]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
spi: Add missing pm_runtime_put_noidle() after failed get
authorTony Lindgren <tony@atomide.com>
Fri, 18 May 2018 17:30:07 +0000 (10:30 -0700)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 1 Mar 2019 13:20:40 +0000 (14:20 +0100)
commitc1f9c2ad659c73eb019dc438043f39bd5ed9987d
treedc075b2a94c72d5acc4bb65e0585e12465c5afb2
parentd6f676720ef8fda304c8bba1f85dc504ba65932d
spi: Add missing pm_runtime_put_noidle() after failed get

BugLink: http://bugs.launchpad.net/bugs/1815234
[ Upstream commit 7e48e23a1f4a50f93ac1073f1326e0a73829b631 ]

If pm_runtime_get_sync() fails we should call pm_runtime_put_noidle().
This is probably not a critical fix as we should only hit this when
things are broken elsewhere.

Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/spi/spi.c