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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Jul 2022 14:34:51 +0000 (16:34 +0200)
commit8d1d6b29baa98135994a1d5d1b5d471677e04773
tree2d8ee0455586f3a781360e8976094250a3f4fa2b
parent48f8f198a2ab8e89050aac4ebe6d1a167d73d956
Input: cpcap-pwrbutton - handle errors from platform_get_irq()

[ Upstream commit 58ae4004b9c4bb040958cf73986b687a5ea4d85d ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/input/misc/cpcap-pwrbutton.c