]> git.baikalelectronics.ru Git - kernel.git/commit
wlcore: fix runtime pm imbalance in wlcore_regdomain_config
authorDinghao Liu <dinghao.liu@zju.edu.cn>
Wed, 20 May 2020 12:46:47 +0000 (20:46 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 29 May 2020 17:31:59 +0000 (20:31 +0300)
commitefb8b125a7eb11fb7fb2e05aa61fb402ba15fb7e
treeda68b7914a4780fe78d97cffde19a3dbe0c1bb50
parent2b40fe8b0d83400bc426ac47a1ea7e34e2f7e3b8
wlcore: fix runtime pm imbalance in wlcore_regdomain_config

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>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200520124649.10848-1-dinghao.liu@zju.edu.cn
drivers/net/wireless/ti/wlcore/main.c