wlcore: fix runtime pm imbalance in wlcore_irq_locked
authorDinghao Liu <dinghao.liu@zju.edu.cn>
Fri, 22 May 2020 04:49:04 +0000 (12:49 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 29 May 2020 17:38:15 +0000 (20:38 +0300)
commitda74b6933b3ba27c88fa0b7ccbd019e4f41ebfd4
tree6884680e822813e278c6976486ce3d31b7a44496
parent7967af8de39d4572da2d15dfa12b1b08810d60a9
wlcore: fix runtime pm imbalance in wlcore_irq_locked

When wlcore_fw_status() returns an error code, a pairing
runtime PM usage counter decrement is needed to keep the
counter balanced. It's the same for all error paths after
wlcore_fw_status().

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/20200522044906.29564-1-dinghao.liu@zju.edu.cn
drivers/net/wireless/ti/wlcore/main.c