Merge pull request #468 from danh-arm/dh/fwu-tweaks

FWU: Fix secure memory check in image auth
diff --git a/bl1/bl1_fwu.c b/bl1/bl1_fwu.c
index f8b414e..0575921 100644
--- a/bl1/bl1_fwu.c
+++ b/bl1/bl1_fwu.c
@@ -298,7 +298,8 @@
 		 * Image is in RESET state.
 		 * Check the parameters and authenticate the source image in place.
 		 */
-		if (bl1_plat_mem_check(image_src, image_size, flags)) {
+		if (bl1_plat_mem_check(image_src, image_size,	\
+					image_desc->ep_info.h.attr)) {
 			WARN("BL1-FWU: Authentication arguments source/size not mapped\n");
 			return -ENOMEM;
 		}