]> git.baikalelectronics.ru Git - kernel.git/commit
clk: imx: Align imx sc clock msg structs to 4
authorLeonard Crestez <leonard.crestez@nxp.com>
Thu, 20 Feb 2020 16:29:32 +0000 (18:29 +0200)
committerStephen Boyd <sboyd@kernel.org>
Thu, 26 Mar 2020 01:45:59 +0000 (18:45 -0700)
commit5fdac61ad0d195f4bdbdd9aacfab3af359c8dbe9
treeb65df2b6bce07c36059f4501930c5f724275d3c0
parent056a4b282bc8e4ecf12fbc2b7b03aed70a5c3751
clk: imx: Align imx sc clock 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: 9a4f52b45cf0 ("clk: imx: add scu clock common part")
Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Link: https://lkml.kernel.org/r/10e97a04980d933b2cfecb6b124bf9046b6e4f16.1582216144.git.leonard.crestez@nxp.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/imx/clk-scu.c