diff options
author | Peng Fan <peng.fan@nxp.com> | 2020-04-22 15:25:31 +0800 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2020-05-01 13:46:21 +0200 |
commit | b7328de6cd1f2b045f36f7f61722ab26b36b17e0 (patch) | |
tree | 96b18d15163466277a7c6595c110d152a6c10b4f /arch | |
parent | 6fcd0b2388eedc139a3135b2b35af39496c57049 (diff) |
imx8: parser: fix 'end address' parameter of rm_find_memreg
parameter 'end address' must be inclusive of address range.
Modified from Seb's downstream patch.
Reviewed-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-imx/imx8/parse-container.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-imx/imx8/parse-container.c b/arch/arm/mach-imx/imx8/parse-container.c index b57e68e412..e192b0c6d2 100644 --- a/arch/arm/mach-imx/imx8/parse-container.c +++ b/arch/arm/mach-imx/imx8/parse-container.c @@ -29,7 +29,7 @@ static int authenticate_image(struct boot_img_t *img, int image_index) /* Find the memreg and set permission for seco pt */ err = sc_rm_find_memreg(-1, &mr, img->dst & ~(CONFIG_SYS_CACHELINE_SIZE - 1), - ALIGN(img->dst + img->size, CONFIG_SYS_CACHELINE_SIZE)); + ALIGN(img->dst + img->size, CONFIG_SYS_CACHELINE_SIZE) - 1); if (err) { printf("can't find memreg for image: %d, err %d\n", |