Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1361739 > unrolled thread

Re: [patch] mfd: lp8788-irq: uninitialized variable in irq handler

Started byLee Jones <lee.jones@linaro.org>
First post2016-03-21 13:00 +0100
Last post2016-03-21 20:30 +0100
Articles 3 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [patch] mfd: lp8788-irq: uninitialized variable in irq handler Lee Jones <lee.jones@linaro.org> - 2016-03-21 13:00 +0100
    Re: [patch] mfd: lp8788-irq: uninitialized variable in irq handler Dan Carpenter <dan.carpenter@oracle.com> - 2016-03-21 13:40 +0100
      Re: [patch] mfd: lp8788-irq: uninitialized variable in irq handler Lee Jones <lee.jones@linaro.org> - 2016-03-21 20:30 +0100

#1361739 — Re: [patch] mfd: lp8788-irq: uninitialized variable in irq handler

FromLee Jones <lee.jones@linaro.org>
Date2016-03-21 13:00 +0100
SubjectRe: [patch] mfd: lp8788-irq: uninitialized variable in irq handler
Message-ID<rf6F4-52Q-9@gated-at.bofh.it>
On Fri, 11 Mar 2016, Dan Carpenter wrote:

> Instead to being true/false, the "handled" is true/uninitialized.
> Presumably this doesn't cause that many problems in real life because
> normally we handle the IRQ.
> 
> Fixes: eea6b7cc53aa ('mfd: Add lp8788 mfd driver')
> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>

I've fixed the $SUBJECT line to be more consistent with the subsystem
style for you this time.  Please pay more attention to that in the
future.

`git log --oneline -- $SUBSYSTEM` helps with this.

[I think I recall a conversation with you about this before, and you
said it was part of your submission process?]

Patch applied, thanks.
 
> diff --git a/drivers/mfd/lp8788-irq.c b/drivers/mfd/lp8788-irq.c
> index c7a9825..792d51b 100644
> --- a/drivers/mfd/lp8788-irq.c
> +++ b/drivers/mfd/lp8788-irq.c
> @@ -112,7 +112,7 @@ static irqreturn_t lp8788_irq_handler(int irq, void *ptr)
>  	struct lp8788_irq_data *irqd = ptr;
>  	struct lp8788 *lp = irqd->lp;
>  	u8 status[NUM_REGS], addr, mask;
> -	bool handled;
> +	bool handled = false;
>  	int i;
>  
>  	if (lp8788_read_multi_bytes(lp, LP8788_INT_1, status, NUM_REGS))

-- 
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog

[toc] | [next] | [standalone]


#1361787

FromDan Carpenter <dan.carpenter@oracle.com>
Date2016-03-21 13:40 +0100
Message-ID<rf7hL-5EJ-11@gated-at.bofh.it>
In reply to#1361739
Gar, the truth is I'm never going to remember to capitalize patches for
you.  No one else has that rule.  Plus the last two times we had this
discussion the patches I was fixing were not capitalized either.

git log -p --author="Dan Carpenter" drivers/mfd | grep Fixes | head -n 2

regards,
dan carpenter

[toc] | [prev] | [next] | [standalone]


#1362077

FromLee Jones <lee.jones@linaro.org>
Date2016-03-21 20:30 +0100
Message-ID<rfdGy-1FG-9@gated-at.bofh.it>
In reply to#1361787
On Mon, 21 Mar 2016, Dan Carpenter wrote:

> Gar, the truth is I'm never going to remember to capitalize patches for
> you.  No one else has that rule.  Plus the last two times we had this

It's an awesome rule.  Everyone should have that rule. ;)

> discussion the patches I was fixing were not capitalized either.
> 
> git log -p --author="Dan Carpenter" drivers/mfd | grep Fixes | head
> -n 2

Not sure what you think the output of this command is meant to show,
but I get this: 

$ git log -p --author="Dan Carpenter" drivers/mfd | grep Fixes | head -n 2
    Fixes: c013f0a56c56 ('mfd: Add pm8xxx irq support')

... which seems to go against your statement.

-- 
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web