diff options
author | Tom Rini <trini@konsulko.com> | 2020-03-31 17:24:19 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-03-31 17:24:19 -0400 |
commit | 2b18b89156335bf1f0d84f81d3597762bc48c61d (patch) | |
tree | 544e93c39bfaeff20b2ac47980de27edf1a585e4 /tools | |
parent | 779e6dc6a429ac28dfd4f07ab0c3648a31399d4a (diff) | |
parent | ac28e59a574dd231a4787752d923f618587e3d10 (diff) | |
download | u-boot-2b18b89156335bf1f0d84f81d3597762bc48c61d.tar.gz |
Merge branch 'next' of git://git.denx.de/u-boot-usb into nextWIP/31Mar2020-next
Diffstat (limited to 'tools')
-rw-r--r-- | tools/rkcommon.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/rkcommon.c b/tools/rkcommon.c index c2382dfe5a..8f281f5901 100644 --- a/tools/rkcommon.c +++ b/tools/rkcommon.c @@ -307,11 +307,13 @@ static int rkcommon_parse_header(const void *buf, struct header0_info *header0, rkcommon_offset_to_spi(hdr1_offset)); for (i = 0; i < ARRAY_SIZE(spl_infos); i++) { - if (!memcmp(&hdr1_sdmmc->magic, spl_infos[i].spl_hdr, 4)) { + if (!memcmp(&hdr1_sdmmc->magic, spl_infos[i].spl_hdr, + RK_SPL_HDR_SIZE)) { if (spl_info) *spl_info = &spl_infos[i]; return IH_TYPE_RKSD; - } else if (!memcmp(&hdr1_spi->magic, spl_infos[i].spl_hdr, 4)) { + } else if (!memcmp(&hdr1_spi->magic, spl_infos[i].spl_hdr, + RK_SPL_HDR_SIZE)) { if (spl_info) *spl_info = &spl_infos[i]; return IH_TYPE_RKSPI; |