]> git.baikalelectronics.ru Git - kernel.git/commit
clk: imx: Align imx sc clock parent msg structs to 4
authorLeonard Crestez <leonard.crestez@nxp.com>
Thu, 20 Feb 2020 16:29:33 +0000 (18:29 +0200)
committerStephen Boyd <sboyd@kernel.org>
Thu, 26 Mar 2020 01:46:05 +0000 (18:46 -0700)
commit9f1f32083dd1708091c52b7efaee411262d0272f
tree50a25a77e9252f2c7a332b1cf2a44e9a9b01d7b7
parent5fdac61ad0d195f4bdbdd9aacfab3af359c8dbe9
clk: imx: Align imx sc clock parent 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: 0e691edd0256 ("clk: imx: scu: add set parent support")
Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Link: https://lkml.kernel.org/r/aad021e432b3062c142973d09b766656eec18fde.1582216144.git.leonard.crestez@nxp.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/imx/clk-scu.c