[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <Ymf9vfkhXVbqF5pi@google.com>
Date: Tue, 26 Apr 2022 15:12:13 +0100
From: Lee Jones <lee.jones@...aro.org>
To: cgel.zte@...il.com
Cc: gremlin@...mlin.it, gregkh@...uxfoundation.org, mad_soft@...ox.ru,
linus.walleij@...aro.org, linux-kernel@...r.kernel.org,
Lv Ruyi <lv.ruyi@....com.cn>, Zeal Robot <zealci@....com.cn>
Subject: Re: [PATCH] mfd: fix error check return value of platform_get_irq()
On Tue, 12 Apr 2022, cgel.zte@...il.com wrote:
> From: Lv Ruyi <lv.ruyi@....com.cn>
>
> 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: dcc21cc09e3c ("mfd: Add driver for Atmel Microcontroller on iPaq h3xxx")
> Reported-by: Zeal Robot <zealci@....com.cn>
> Signed-off-by: Lv Ruyi <lv.ruyi@....com.cn>
> ---
> drivers/mfd/ipaq-micro.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
I fixed the subject line for you and applied, thanks.
--
Lee Jones [李琼斯]
Principal Technical Lead - Developer Services
Linaro.org │ Open source software for Arm SoCs
Follow Linaro: Facebook | Twitter | Blog
Powered by blists - more mailing lists