]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf0b5f1899f840d8f4a00b43c56c45cabd50e0d53
tree35aaddc5470bc00c0266b7e82d4676c781450566
parentd239cd3470e6f5e9e164dde65b0afd466a761026
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