]> git.baikalelectronics.ru Git - kernel.git/commit
Input: cpcap-pwrbutton - handle errors from platform_get_irq()
authorTang Bin <tangbin@cmss.chinamobile.com>
Mon, 6 Sep 2021 01:57:32 +0000 (18:57 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 6 Sep 2021 02:42:42 +0000 (19:42 -0700)
commit2733e0ae4c649371abd535f623a1907a67a3a054
treedf8b9345682d3a3016f639a056391578eb0fc2c5
parent730e22392df745a87b0684d113ceeee9896d38b2
Input: cpcap-pwrbutton - handle errors from platform_get_irq()

The function cpcap_power_button_probe() does not perform
sufficient error checking after executing platform_get_irq(),
thus fix it.

Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com>
Link: https://lore.kernel.org/r/20210802121740.8700-1-tangbin@cmss.chinamobile.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/misc/cpcap-pwrbutton.c