Messages in this thread | | | From | Linus Walleij <> | Date | Tue, 12 Apr 2022 15:45:21 +0200 | Subject | Re: [PATCH] ixp4xx_eth: fix error check return value of platform_get_irq() |
| |
On Tue, Apr 12, 2022 at 10:51 AM <cgel.zte@gmail.com> wrote:
> From: Lv Ruyi <lv.ruyi@zte.com.cn> > > platform_get_irq() return negative value on failure, so null check of > return value is incorrect. Fix it by comparing whether it is less than > zero. > > Fixes: 9055a2f59162 ("ixp4xx_eth: make ptp support a platform driver") > 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>
Yours, Linus Walleij
| |