git.openpandora.org
/
pandora-u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de06083
)
mmc: fix improper use of memset
author
Sam Edwards
<cfsworks@gmail.com>
Thu, 18 May 2023 19:47:07 +0000
(13:47 -0600)
committer
Tom Rini
<trini@konsulko.com>
Wed, 31 May 2023 21:23:01 +0000
(17:23 -0400)
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>
drivers/mmc/mmc.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/mmc.c
b/drivers/mmc/mmc.c
index
1af6af8
..
72c1076
100644
(file)
--- a/
drivers/mmc/mmc.c
+++ b/
drivers/mmc/mmc.c
@@
-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)