Input: stmfts - fix reference leak in stmfts_input_open
authorZheng Yongjun <zhengyongjun3@huawei.com>
Mon, 21 Mar 2022 04:56:38 +0000 (21:56 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 21 Mar 2022 04:59:43 +0000 (21:59 -0700)
commit26623eea0da3476446909af96c980768df07bbd9
tree35aaddc5470bc00c0266b7e82d4676c781450566
parent409353cbe9fe48f6bc196114c442b1cff05a39bc
Input: stmfts - fix reference leak in stmfts_input_open

pm_runtime_get_sync() will increment pm usage counter even it
failed. Forgetting to call pm_runtime_put_noidle will result
in reference leak in stmfts_input_open, so we should fix it.

Signed-off-by: Zheng Yongjun <zhengyongjun3@huawei.com>
Link: https://lore.kernel.org/r/20220317131604.53538-1-zhengyongjun3@huawei.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/stmfts.c