]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: img-i2s-out: Fix runtime PM imbalance on error
authorDinghao Liu <dinghao.liu@zju.edu.cn>
Fri, 29 May 2020 01:22:28 +0000 (09:22 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 29 May 2020 12:30:04 +0000 (13:30 +0100)
commitcf61f6aa6deedd393242347f75dab04e4ac7c181
tree0bdca9b2c17c3a3c495a4ca04502e6004bbfc462
parent51c4a0bc2a15c79b8253f182d1b0a1aea43a3f1b
ASoC: img-i2s-out: Fix runtime PM imbalance on error

pm_runtime_get_sync() increments the runtime PM usage counter even
the call returns an error code. Thus a pairing decrement is needed
on the error handling path to keep the counter balanced.

Signed-off-by: Dinghao Liu <dinghao.liu@zju.edu.cn>
Link: https://lore.kernel.org/r/20200529012230.5863-1-dinghao.liu@zju.edu.cn
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/img/img-i2s-out.c