]> 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)
commit88ccde87fe95e693c2ae0f727bd3dc38f395a4cd
treedf8b9345682d3a3016f639a056391578eb0fc2c5
parent09e5eb99d8a104dfe056f8091cfd2240ec424d65
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