[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220311082051.783b7c0b@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com>
Date: Fri, 11 Mar 2022 08:20:51 -0800
From: Jakub Kicinski <kuba@...nel.org>
To: cgel.zte@...il.com
Cc: sebastian.hesselbarth@...il.com, davem@...emloft.net,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
Minghao Chi <chi.minghao@....com.cn>,
Zeal Robot <zealci@....com.cn>
Subject: Re: [PATCH V2] net: mv643xx_eth: use platform_get_irq() instead of
platform_get_resource()
On Thu, 10 Mar 2022 06:20:35 +0000 cgel.zte@...il.com wrote:
> @@ -3189,9 +3188,10 @@ static int mv643xx_eth_probe(struct platform_device *pdev)
> timer_setup(&mp->rx_oom, oom_timer_wrapper, 0);
>
>
> - res = platform_get_resource(pdev, IORESOURCE_IRQ, 0);
> - BUG_ON(!res);
> - dev->irq = res->start;
> + irq = platform_get_irq(pdev, 0);
> + if (WARN_ON(irq < 0))
> + return irq;
You can't just return from here, there are operations that need
to be undone, look at the end of this function :/ Please follow
up with an incremental fix ASAP.
> + dev->irq = irq;
>
Powered by blists - more mailing lists