]> git.baikalelectronics.ru Git - kernel.git/commit
remoteproc: imx_rproc: fix a couple off by one bugs
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 5 Oct 2017 12:58:27 +0000 (15:58 +0300)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Tue, 10 Oct 2017 18:22:55 +0000 (11:22 -0700)
commitcb818e75f784df17d67f3dc52739e1e3a2c65cb3
tree3c354cf031fb542d0471b1d44116b6ee49feea64
parent2018862bdad13479b663e0e9615d7c6fcaa89285
remoteproc: imx_rproc: fix a couple off by one bugs

The priv->mem[] array has IMX7D_RPROC_MEM_MAX elements so the > should
be >= to avoid writing one element beyond the end of the array.

Fixes: d6977ef3a210 ("remoteproc: imx_rproc: add a NXP/Freescale imx_rproc driver")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/remoteproc/imx_rproc.c