Re: [PATCH v2] mfd: stmfx: Uninitialized variable in stmfx_irq_handler()

2019-06-12 Thread Lee Jones
On Thu, 06 Jun 2019, Dan Carpenter wrote: > The problem is that on 64bit systems then we don't clear the higher > bits of the "pending" variable. So when we do: > > ack = pending & ~BIT(STMFX_REG_IRQ_SRC_EN_GPIO); > if (ack) { > > the if (ack) condition relies on uninitialized d

Re: [PATCH v2] mfd: stmfx: Uninitialized variable in stmfx_irq_handler()

2019-06-06 Thread Amelie DELAUNAY
On 6/6/19 2:41 PM, Dan Carpenter wrote: > The problem is that on 64bit systems then we don't clear the higher > bits of the "pending" variable. So when we do: > > ack = pending & ~BIT(STMFX_REG_IRQ_SRC_EN_GPIO); > if (ack) { > > the if (ack) condition relies on uninitialized da

[PATCH v2] mfd: stmfx: Uninitialized variable in stmfx_irq_handler()

2019-06-06 Thread Dan Carpenter
The problem is that on 64bit systems then we don't clear the higher bits of the "pending" variable. So when we do: ack = pending & ~BIT(STMFX_REG_IRQ_SRC_EN_GPIO); if (ack) { the if (ack) condition relies on uninitialized data. The fix it that I've changed "pending" from an unsi