]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: img-spdif-in: Fix runtime PM imbalance on error
authorDinghao Liu <dinghao.liu@zju.edu.cn>
Wed, 27 May 2020 08:43:24 +0000 (16:43 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 27 May 2020 13:48:53 +0000 (14:48 +0100)
commitd4ab2de110adc4f1ddd5f20294c48067d7540cca
tree2fa41a2776f243ce75dc00cb3b6d5c887132af2d
parent68d95ab8f4ee706af61836e05db43d7f216ed84f
ASoC: img-spdif-in: 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/20200527084326.4131-1-dinghao.liu@zju.edu.cn
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/img/img-spdif-in.c