[PATCH] misc: atmel-ssc: fix error check return value of platform_get_irq()
Codrin.Ciubotariu at microchip.com
Codrin.Ciubotariu at microchip.com
Thu Apr 14 23:47:26 PDT 2022
On 13.04.2022 12:32, cgel.zte at gmail.com wrote:
> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
>
> From: Lv Ruyi <lv.ruyi at zte.com.cn>
>
> platform_get_irq() return negative value on failure, so null check of
> ssc->irq is incorrect. Fix it by comparing whether it is less than zero.
>
> Reported-by: Zeal Robot <zealci at zte.com.cn>
> Signed-off-by: Lv Ruyi <lv.ruyi at zte.com.cn>
Reviewed-by: Codrin Ciubotariu <codrin.ciubotariu at microchip.com>
Thanks!
More information about the linux-arm-kernel
mailing list