lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Date:   Mon, 10 Jul 2017 14:35:03 -0500
From:   "Gustavo A. R. Silva" <garsilva@...eddedor.com>
To:     Evgeniy Polyakov <zbr@...emap.net>
Cc:     Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
        linux-kernel@...r.kernel.org
Subject: Re: [PATCH] w1: omap-hdq: fix error return code in omap_hdq_probe()

Hi Evgeniy,

Quoting Evgeniy Polyakov <zbr@...emap.net>:

> Hi Gustavo, Greg
>
> 01.07.2017, 01:44, "Gustavo A. R. Silva" <garsilva@...eddedor.com>:
>> platform_get_irq() returns an error code, but the omap_hdq
>> driver ignores it and always returns -ENXIO. This is not correct,
>> and prevents -EPROBE_DEFER from being propagated properly.
>> Notice that platform_get_irq() no longer returns 0 on error.
>>
>> Print error message and propagate the return value of
>> platform_get_irq on failure.
>>
>> Signed-off-by: Gustavo A. R. Silva <garsilva@...eddedor.com>
>
> Looks good to me, thank you.
>

Glad to help. :)

> Greg, please pull it into the tree.
> Acked-by: Evgeniy Polyakov <zbr@...emap.net>
>
>> ---
>>  drivers/w1/masters/omap_hdq.c | 3 ++-
>>  1 file changed, 2 insertions(+), 1 deletion(-)
>>
>> diff --git a/drivers/w1/masters/omap_hdq.c b/drivers/w1/masters/omap_hdq.c
>> index 3612542..83fc9aa 100644
>> --- a/drivers/w1/masters/omap_hdq.c
>> +++ b/drivers/w1/masters/omap_hdq.c
>> @@ -704,7 +704,8 @@ static int omap_hdq_probe(struct platform_device *pdev)
>>
>>          irq = platform_get_irq(pdev, 0);
>>          if (irq < 0) {
>> - ret = -ENXIO;
>> + dev_dbg(&pdev->dev, "Failed to get IRQ: %d\n", irq);
>> + ret = irq;
>>                  goto err_irq;
>>          }
>>
>> --
>> 2.5.0
--
Gustavo A. R. Silva






Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ