]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
mailbox: imx-mailbox: fix scu msg header size check
authorPeng Fan <peng.fan@nxp.com>
Tue, 14 Apr 2020 13:21:15 +0000 (21:21 +0800)
committerJassi Brar <jaswinder.singh@linaro.org>
Sat, 30 May 2020 23:07:07 +0000 (18:07 -0500)
commit9d8ca628c0286a35e3f8382e44f8b79846a88603
tree820e7d186902e9c072bb193fe973aa46f7813211
parentca27fc26cd2219d964b4fc0efac634ab237b6c8e
mailbox: imx-mailbox: fix scu msg header size check

The i.MX8 SCU message header size is the number of "u32" elements,
not "u8", so fix the check.

Reported-by: coverity-bot <keescook+coverity-bot@chromium.org>
Addresses-Coverity-ID: 1461658 ("Memory - corruptions")
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Leonard Crestez <leonard.crestez@nxp.com>
Acked-by: Oleksij Rempel <o.rempel@pengutronix.de>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
drivers/mailbox/imx-mailbox.c