summaryrefslogtreecommitdiff
path: root/common/fdt_support.c
diff options
context:
space:
mode:
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>2012-06-07 19:09:11 +0000
committerAndy Fleming <afleming@freescale.com>2012-09-05 17:32:41 -0500
commitcdfd1ac6df16f11fa00e30a76e3c37d61c24b7fa (patch)
tree9d291d87791b8f52479b31f0afecf84503aff396 /common/fdt_support.c
parent97a7b9928aceefb6e9024261b86e49e0e77d6bfd (diff)
downloadu-boot-imx-cdfd1ac6df16f11fa00e30a76e3c37d61c24b7fa.zip
u-boot-imx-cdfd1ac6df16f11fa00e30a76e3c37d61c24b7fa.tar.gz
u-boot-imx-cdfd1ac6df16f11fa00e30a76e3c37d61c24b7fa.tar.bz2
mmc: fix capacity calculation when EXT_CSD_SEC_CNT is used
Since the type of "ext_csd" was array of char, the following calculation might fail when the value of ext_csd[EXT_CSD_SEC_CNT] was minus. capacity = ext_csd[EXT_CSD_SEC_CNT] << 0 | ext_csd[EXT_CSD_SEC_CNT + 1] << 8 | ext_csd[EXT_CSD_SEC_CNT + 2] << 16 | ext_csd[EXT_CSD_SEC_CNT + 3] << 24; So, this patch changes the type of "ext_csd" to array of u8. Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> Signed-off-by: Andy Fleming <afleming@freescale.com>
Diffstat (limited to 'common/fdt_support.c')
0 files changed, 0 insertions, 0 deletions