[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <3bc2809a-b8b1-b6bd-139f-2a6000b6f8d1@omp.ru>
Date: Fri, 14 Jan 2022 13:58:20 +0300
From: Sergey Shtylyov <s.shtylyov@....ru>
To: Florian Fainelli <f.fainelli@...il.com>,
Andrew Lunn <andrew@...n.ch>
CC: Doug Berger <opendmb@...il.com>,
"David S. Miller" <davem@...emloft.net>,
Jakub Kicinski <kuba@...nel.org>, <netdev@...r.kernel.org>,
<bcm-kernel-feedback-list@...adcom.com>
Subject: Re: [PATCH] bcmgenet: add WOL IRQ check
Hello!
On 1/14/22 12:37 AM, Florian Fainelli wrote:
>>> The driver neglects to check the result of platform_get_irq_optional()'s
>>> call and blithely passes the negative error codes to devm_request_irq()
>>> (which takes *unsigned* IRQ #), causing it to fail with -EINVAL.
>>> Stop calling devm_request_irq() with the invalid IRQ #s.
>>>
>>> Signed-off-by: Sergey Shtylyov <s.shtylyov@....ru>
>>>
>>> ---
>>> This patch is against DaveM's 'net.git' repo.
>>
>> Since this is for net, it needs a Fixes: tag.
>>
>> Fixes: 8562056f267d ("net: bcmgenet: request Wake-on-LAN interrupt")
>
> I don't have strong objections whether we want to consider this a bug fix or not,
Formally, it's a fix -- as you shouldn't call devm_request_irq() with "negative" IRQ #s.
> but since the code only acts upon devm_request_irq() returning 0 meaning success, this seems more like an improvement rather than fixing an actual issue.
More like a cleanup (no, not improvement).
MBR, Sergey
Powered by blists - more mailing lists