From: Aneesh Bansal Date: Mon, 12 Oct 2015 16:35:50 +0000 (+0530) Subject: SECURE_BOOT: Correct reading of ITS bit X-Git-Tag: v2016.01-rc1~152^2~3 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=6ec9aef2cef311c57652e8d17b09eceac2cebb06;p=oweals%2Fu-boot.git SECURE_BOOT: Correct reading of ITS bit The ITS bit was being read incorrectly beacause of operator precedence. The same ahs been corrected. Signed-off-by: Lawish Deshmukh Signed-off-by: Aneesh Bansal Reviewed-by: York Sun --- diff --git a/board/freescale/common/fsl_validate.c b/board/freescale/common/fsl_validate.c index 465676f07a..73b6718db9 100644 --- a/board/freescale/common/fsl_validate.c +++ b/board/freescale/common/fsl_validate.c @@ -246,7 +246,7 @@ static void fsl_secboot_image_verification_failure(void) struct ccsr_sfp_regs *sfp_regs = (void *)(CONFIG_SYS_SFP_ADDR); u32 sts = sec_mon_in32(&sec_mon_regs->hp_stat); - u32 its = sfp_in32(&sfp_regs->ospr) & ITS_MASK >> ITS_BIT; + u32 its = (sfp_in32(&sfp_regs->ospr) & ITS_MASK) >> ITS_BIT; /* * Read the SEC_MON status register