Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mfd: lp8788-irq: Uninitialized variable in irq handler

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>

authored by

Dan Carpenter and committed by
Lee Jones
22aab38e adae28c5

+1 -1
+1 -1
drivers/mfd/lp8788-irq.c
··· 112 112 struct lp8788_irq_data *irqd = ptr; 113 113 struct lp8788 *lp = irqd->lp; 114 114 u8 status[NUM_REGS], addr, mask; 115 - bool handled; 115 + bool handled = false; 116 116 int i; 117 117 118 118 if (lp8788_read_multi_bytes(lp, LP8788_INT_1, status, NUM_REGS))