Files
linux/drivers/mfd
Lv Ruyi d933a96580 mfd: ipaq-micro: Fix error check return value of platform_get_irq()
[ Upstream commit 3b49ae380c ]

platform_get_irq() return negative value on failure, so null check of
irq is incorrect. Fix it by comparing whether it is less than zero.

Fixes: dcc21cc09e ("mfd: Add driver for Atmel Microcontroller on iPaq h3xxx")
Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Lv Ruyi <lv.ruyi@zte.com.cn>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Link: https://lore.kernel.org/r/20220412085305.2533030-1-lv.ruyi@zte.com.cn
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-06-14 16:59:24 +02:00
..
2016-11-29 08:21:33 +00:00
2018-07-04 07:17:13 +01:00
2018-01-08 11:03:35 +00:00
2017-07-18 08:27:18 +01:00
2020-10-29 09:55:13 +01:00
2016-08-10 09:25:18 +01:00
2017-04-27 09:25:04 +01:00