]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: imx-sc: Align imx sc msg structs to 4
authorLeonard Crestez <leonard.crestez@nxp.com>
Thu, 20 Feb 2020 16:29:38 +0000 (18:29 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Sun, 29 Mar 2020 20:08:35 +0000 (22:08 +0200)
commitf35d79739f1a9ae85e05469841e0d0a191b30afe
tree9273b7975be0473703d4c9fccae4a6f0834fc69c
parentda543578b78a9b6edb50d277974cb3c82f3fa1ff
rtc: imx-sc: Align imx sc msg structs to 4

The imx SC api strongly assumes that messages are composed out of
4-bytes words but some of our message structs have odd sizeofs.

This produces many oopses with CONFIG_KASAN=y.

Fix by marking with __aligned(4).

Fixes: 37a659e9b308 ("rtc: imx-sc: add rtc alarm support")
Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Link: https://lore.kernel.org/r/13404bac8360852d86c61fad5ae5f0c91ffc4cb6.1582216144.git.leonard.crestez@nxp.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-imx-sc.c