]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita99215356a0dd9ce7e464c2812d638ec514eae7c
treec1c1c4f131a3d811fd1c1d7bbe9392775f5909d0
parent6bc0b9ec91c1c2e7ec2f66f768d7ef44d8e80da8
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