]> git.proxmox.com Git - mirror_ubuntu-focal-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)
committerSeth Forshee <seth.forshee@canonical.com>
Sat, 4 Apr 2020 19:30:03 +0000 (14:30 -0500)
commit365df6a8aed52f06651768614c877c9028052284
treed7fb2ce1c6c57d212db258f1786d7a599a1451c8
parentf964e69a2d5020105a9afc726d1bbef84fd59c3a
clk: imx: Align imx sc clock parent msg structs to 4

BugLink: https://bugs.launchpad.net/bugs/1870571
commit 8400ab8896324641243b57fc49b448023c07409a upstream.

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: 666aed2d13ee ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
drivers/clk/imx/clk-scu.c