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


Groups > linux.kernel > #1461827 > unrolled thread

[PATCH 3.16 014/305] mfd: lp8788-irq: Uninitialized variable in irq handler

Started byBen Hutchings <ben@decadent.org.uk>
First post2016-08-14 13:10 +0200
Last post2016-08-14 13:10 +0200
Articles 1 — 1 participant

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

  [PATCH 3.16 014/305] mfd: lp8788-irq: Uninitialized variable in  irq handler Ben Hutchings <ben@decadent.org.uk> - 2016-08-14 13:10 +0200

#1461827 — [PATCH 3.16 014/305] mfd: lp8788-irq: Uninitialized variable in irq handler

FromBen Hutchings <ben@decadent.org.uk>
Date2016-08-14 13:10 +0200
Subject[PATCH 3.16 014/305] mfd: lp8788-irq: Uninitialized variable in irq handler
Message-ID<s61sK-7d0-9@gated-at.bofh.it>
3.16.37-rc1 review patch.  If anyone has any objections, please let me know.

------------------

From: Dan Carpenter <dan.carpenter@oracle.com>

commit 22aab38e7b59fd79ce1045006be69a9abab58e5a upstream.

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>
Acked-by: Milo Kim <milo.kim@ti.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
---
 drivers/mfd/lp8788-irq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/mfd/lp8788-irq.c
+++ b/drivers/mfd/lp8788-irq.c
@@ -110,7 +110,7 @@ static irqreturn_t lp8788_irq_handler(in
 	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))

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web