mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-28 07:31:15 +00:00
mmc: fix improper use of memset
Buffers created through DEFINE_(CACHE_)ALIGN_BUFFER are actually pointers to the real underlying buffer. Using sizeof(...) is not appropriate in this case. Signed-off-by: Sam Edwards <CFSworks@gmail.com> Reviewed-by: Peng Fan <peng.fan@nxp.com>
This commit is contained in:
parent
de06083c88
commit
229d689e3c
1 changed files with 1 additions and 1 deletions
|
@ -2262,7 +2262,7 @@ static int mmc_startup_v4(struct mmc *mmc)
|
|||
return 0;
|
||||
|
||||
if (!mmc->ext_csd)
|
||||
memset(ext_csd_bkup, 0, sizeof(ext_csd_bkup));
|
||||
memset(ext_csd_bkup, 0, MMC_MAX_BLOCK_LEN);
|
||||
|
||||
err = mmc_send_ext_csd(mmc, ext_csd);
|
||||
if (err)
|
||||
|
|
Loading…
Reference in a new issue