From: Peng Fan Date: Wed, 22 Apr 2020 07:36:34 +0000 (+0800) Subject: imx8: ahab: fix 'end address' parameter of rm_find_memreg X-Git-Tag: v2020.07-rc2~15^2~44 X-Git-Url: https://git.librecmc.org/?p=oweals%2Fu-boot.git;a=commitdiff_plain;h=abf7752c40e0cf587744534fbb5865f75ba4331d imx8: ahab: fix 'end address' parameter of rm_find_memreg parameter 'end address' must be inclusive of address range. Reviewed-by: Fabio Estevam Signed-off-by: Peng Fan --- diff --git a/arch/arm/mach-imx/imx8/ahab.c b/arch/arm/mach-imx/imx8/ahab.c index 361c578efc..89544b3dc6 100644 --- a/arch/arm/mach-imx/imx8/ahab.c +++ b/arch/arm/mach-imx/imx8/ahab.c @@ -97,7 +97,7 @@ int authenticate_os_container(ulong addr) img->size); s = img->dst & ~(CONFIG_SYS_CACHELINE_SIZE - 1); - e = ALIGN(img->dst + img->size, CONFIG_SYS_CACHELINE_SIZE); + e = ALIGN(img->dst + img->size, CONFIG_SYS_CACHELINE_SIZE) - 1; flush_dcache_range(s, e);