]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
pinctrl: imx: scu: Align imx sc msg structs to 4
authorLeonard Crestez <leonard.crestez@nxp.com>
Thu, 20 Feb 2020 16:29:37 +0000 (18:29 +0200)
committerPaolo Pisati <paolo.pisati@canonical.com>
Wed, 18 Mar 2020 10:39:20 +0000 (11:39 +0100)
commit01f440d2065f5b795eb701b50c0aaa14e2fc9cb9
treeb864d9e88e678d6daa0f0dfac1ce2637d8c26552
parent9d47f36e9ff919681350b9c7f3f8a2a3582dd739
pinctrl: imx: scu: Align imx sc msg structs to 4

BugLink: https://bugs.launchpad.net/bugs/1867903
commit 4c48e549f39f8ed10cf8a0b6cb96f5eddf0391ce 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: b96eea718bf6 ("pinctrl: fsl: add scu based pinctrl support")
Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Link: https://lore.kernel.org/r/bd7ad5fd755739a6d8d5f4f65e03b3ca4f457bd2.1582216144.git.leonard.crestez@nxp.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/pinctrl/freescale/pinctrl-scu.c