Re: [PATCH] ASoC: img-spdif-out: Fix runtime PM imbalance on error

2020-05-27 Thread Mark Brown
On Wed, 27 May 2020 16:46:08 +0800, Dinghao Liu wrote: > 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. Applied to https://git.kernel.org/pub/scm/

[PATCH] ASoC: img-spdif-out: Fix runtime PM imbalance on error

2020-05-27 Thread Dinghao Liu
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 --- sound/soc/img/img-spdif-out.c | 4 +++- 1 file changed, 3 insertions(+), 1