mfd: stmfx: Fix an endian bug in stmfx_irq_handler()
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 17 Jun 2019 19:06:05 +0000 (22:06 +0300)
committerLee Jones <lee.jones@linaro.org>
Mon, 24 Jun 2019 14:19:31 +0000 (15:19 +0100)
commit63b2de12b7eeacfb2edbe005f5c3cff17a2a02e2
treec1c1c4f131a3d811fd1c1d7bbe9392775f5909d0
parentcd49b84d61b2dfc0360c76d9e6be49f5116ba1a5
mfd: stmfx: Fix an endian bug in stmfx_irq_handler()

It's not okay to cast a "u32 *" to "unsigned long *" when you are
doing a for_each_set_bit() loop because that will break on big
endian systems.

Fixes: 386145601b82 ("mfd: stmfx: Uninitialized variable in stmfx_irq_handler()")
Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Tested-by: Amelie Delaunay <amelie.delaunay@st.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/stmfx.c