]> git.baikalelectronics.ru Git - 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)
commit3af27d47635f2565e86712ad39013d27e01bbc55
tree820e7d186902e9c072bb193fe973aa46f7813211
parenta9a5685ab0869be86f230b1f382a1ef8a4f8225f
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