[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <6ab96d83-5ec3-e882-7bfc-fe072c101666@gmail.com>
Date: Thu, 18 Jan 2018 08:05:22 -0600
From: Corey Minyard <tcminyard@...il.com>
To: Alexey Kardashevskiy <aik@...abs.ru>,
Wei Yongjun <weiyongjun1@...wei.com>,
Corey Minyard <minyard@....org>, Arnd Bergmann <arnd@...db.de>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Benjamin Herrenschmidt <benh@...nel.crashing.org>,
Paul Mackerras <paulus@...ba.org>,
Michael Ellerman <mpe@...erman.id.au>
Cc: openipmi-developer@...ts.sourceforge.net,
linuxppc-dev@...ts.ozlabs.org, linux-kernel@...r.kernel.org,
kernel-janitors@...r.kernel.org
Subject: Re: [PATCH -next] ipmi/powernv: Fix error return code in
ipmi_powernv_probe()
On 01/17/2018 10:04 PM, Alexey Kardashevskiy wrote:
> On 17/01/18 22:25, Wei Yongjun wrote:
>> Fix to return a negative error code from the request_irq() error
>> handling case instead of 0, as done elsewhere in this function.
>>
>> Signed-off-by: Wei Yongjun <weiyongjun1@...wei.com>
>
> Reviewed-by: Alexey Kardashevskiy <aik@...abs.ru>
Queued for next release. Thanks!
-corey
>
>
>> ---
>> drivers/char/ipmi/ipmi_powernv.c | 5 +++--
>> 1 file changed, 3 insertions(+), 2 deletions(-)
>>
>> diff --git a/drivers/char/ipmi/ipmi_powernv.c b/drivers/char/ipmi/ipmi_powernv.c
>> index c687c8d..bcf493d 100644
>> --- a/drivers/char/ipmi/ipmi_powernv.c
>> +++ b/drivers/char/ipmi/ipmi_powernv.c
>> @@ -250,8 +250,9 @@ static int ipmi_powernv_probe(struct platform_device *pdev)
>> ipmi->irq = opal_event_request(prop);
>> }
>>
>> - if (request_irq(ipmi->irq, ipmi_opal_event, IRQ_TYPE_LEVEL_HIGH,
>> - "opal-ipmi", ipmi)) {
>> + rc = request_irq(ipmi->irq, ipmi_opal_event, IRQ_TYPE_LEVEL_HIGH,
>> + "opal-ipmi", ipmi);
>> + if (rc) {
>> dev_warn(dev, "Unable to request irq\n");
>> goto err_dispose;
>> }
>>
>
Powered by blists - more mailing lists