public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] tps65218.c: fix IRQ resource leak in tps65218_probe()
@ 2018-12-06  9:57 Christian Hohnstaedt
  2018-12-14 12:25 ` Lee Jones
  0 siblings, 1 reply; 5+ messages in thread
From: Christian Hohnstaedt @ 2018-12-06  9:57 UTC (permalink / raw)
  To: J, KEERTHY, Lee Jones; +Cc: linux-kernel, linux-omap

Free allocated IRQ if reading the device ID fails.

Signed-off-by: Christian Hohnstaedt <Christian.Hohnstaedt@wago.com>
---
 drivers/mfd/tps65218.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mfd/tps65218.c b/drivers/mfd/tps65218.c
index 910f569..19270bc 100644
--- a/drivers/mfd/tps65218.c
+++ b/drivers/mfd/tps65218.c
@@ -244,7 +244,7 @@ static int tps65218_probe(struct i2c_client *client,
 	ret = regmap_read(tps->regmap, TPS65218_REG_CHIPID, &chipid);
 	if (ret) {
 		dev_err(tps->dev, "Failed to read chipid: %d\n", ret);
-		return ret;
+		goto err_irq;
 	}
 
 	tps->rev = chipid & TPS65218_CHIPID_REV_MASK;
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] tps65218.c: fix IRQ resource leak in tps65218_probe()
  2018-12-06  9:57 [PATCH] tps65218.c: fix IRQ resource leak in tps65218_probe() Christian Hohnstaedt
@ 2018-12-14 12:25 ` Lee Jones
  2018-12-14 12:26   ` Lee Jones
  0 siblings, 1 reply; 5+ messages in thread
From: Lee Jones @ 2018-12-14 12:25 UTC (permalink / raw)
  To: Christian Hohnstaedt; +Cc: J, KEERTHY, linux-kernel, linux-omap

On Thu, 06 Dec 2018, Christian Hohnstaedt wrote:

> Free allocated IRQ if reading the device ID fails.

The patch is fine.  However, in future please submit patches using the
format set (by precedent) by the subsystem.  I will fix the subject
for you this time.

To check the format, you can do:

  `git log --oneline -- <subsystem>`


> Signed-off-by: Christian Hohnstaedt <Christian.Hohnstaedt@wago.com>
> ---
>  drivers/mfd/tps65218.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/mfd/tps65218.c b/drivers/mfd/tps65218.c
> index 910f569..19270bc 100644
> --- a/drivers/mfd/tps65218.c
> +++ b/drivers/mfd/tps65218.c
> @@ -244,7 +244,7 @@ static int tps65218_probe(struct i2c_client *client,
>  	ret = regmap_read(tps->regmap, TPS65218_REG_CHIPID, &chipid);
>  	if (ret) {
>  		dev_err(tps->dev, "Failed to read chipid: %d\n", ret);
> -		return ret;
> +		goto err_irq;
>  	}
>  
>  	tps->rev = chipid & TPS65218_CHIPID_REV_MASK;

-- 
Lee Jones [李琼斯]
Linaro Services Technical Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] tps65218.c: fix IRQ resource leak in tps65218_probe()
  2018-12-14 12:25 ` Lee Jones
@ 2018-12-14 12:26   ` Lee Jones
  2018-12-17  6:01     ` J, KEERTHY
  0 siblings, 1 reply; 5+ messages in thread
From: Lee Jones @ 2018-12-14 12:26 UTC (permalink / raw)
  To: Christian Hohnstaedt; +Cc: J, KEERTHY, linux-kernel, linux-omap

On Fri, 14 Dec 2018, Lee Jones wrote:

> On Thu, 06 Dec 2018, Christian Hohnstaedt wrote:
> 
> > Free allocated IRQ if reading the device ID fails.
> 
> The patch is fine.  However, in future please submit patches using the
> format set (by precedent) by the subsystem.  I will fix the subject
> for you this time.
> 
> To check the format, you can do:
> 
>   `git log --oneline -- <subsystem>`

Patch applied, by the way.

-- 
Lee Jones [李琼斯]
Linaro Services Technical Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] tps65218.c: fix IRQ resource leak in tps65218_probe()
  2018-12-14 12:26   ` Lee Jones
@ 2018-12-17  6:01     ` J, KEERTHY
  2018-12-17 14:34       ` Lee Jones
  0 siblings, 1 reply; 5+ messages in thread
From: J, KEERTHY @ 2018-12-17  6:01 UTC (permalink / raw)
  To: Lee Jones, Christian Hohnstaedt; +Cc: linux-kernel, linux-omap



On 12/14/2018 5:56 PM, Lee Jones wrote:
> On Fri, 14 Dec 2018, Lee Jones wrote:
> 
>> On Thu, 06 Dec 2018, Christian Hohnstaedt wrote:
>>
>>> Free allocated IRQ if reading the device ID fails.
>>
>> The patch is fine.  However, in future please submit patches using the
>> format set (by precedent) by the subsystem.  I will fix the subject
>> for you this time.
>>
>> To check the format, you can do:
>>
>>    `git log --oneline -- <subsystem>`
> 
> Patch applied, by the way.

This would no longer be needed as the bigger clean up is here:

https://lkml.org/lkml/2018/12/9/86

As both are applied it results in a compilation issue.

Lee Jones,

Do you want me to submit a fix patch? Or you can revert this patch?
Anything fine by me.

Let me know.

Thanks,
Keerthy
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] tps65218.c: fix IRQ resource leak in tps65218_probe()
  2018-12-17  6:01     ` J, KEERTHY
@ 2018-12-17 14:34       ` Lee Jones
  0 siblings, 0 replies; 5+ messages in thread
From: Lee Jones @ 2018-12-17 14:34 UTC (permalink / raw)
  To: J, KEERTHY; +Cc: Christian Hohnstaedt, linux-kernel, linux-omap

On Mon, 17 Dec 2018, J, KEERTHY wrote:

> 
> 
> On 12/14/2018 5:56 PM, Lee Jones wrote:
> > On Fri, 14 Dec 2018, Lee Jones wrote:
> > 
> > > On Thu, 06 Dec 2018, Christian Hohnstaedt wrote:
> > > 
> > > > Free allocated IRQ if reading the device ID fails.
> > > 
> > > The patch is fine.  However, in future please submit patches using the
> > > format set (by precedent) by the subsystem.  I will fix the subject
> > > for you this time.
> > > 
> > > To check the format, you can do:
> > > 
> > >    `git log --oneline -- <subsystem>`
> > 
> > Patch applied, by the way.
> 
> This would no longer be needed as the bigger clean up is here:
> 
> https://lkml.org/lkml/2018/12/9/86
> 
> As both are applied it results in a compilation issue.
> 
> Lee Jones,
> 
> Do you want me to submit a fix patch? Or you can revert this patch?
> Anything fine by me.

I have removed this patch from the MFD tree now.  Thanks.

-- 
Lee Jones [李琼斯]
Linaro Services Technical Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-12-17 14:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-12-06  9:57 [PATCH] tps65218.c: fix IRQ resource leak in tps65218_probe() Christian Hohnstaedt
2018-12-14 12:25 ` Lee Jones
2018-12-14 12:26   ` Lee Jones
2018-12-17  6:01     ` J, KEERTHY
2018-12-17 14:34       ` Lee Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox