]> git.dujemihanovic.xyz Git - u-boot.git/commit
mmc: fix improper use of memset
authorSam Edwards <cfsworks@gmail.com>
Thu, 18 May 2023 19:47:07 +0000 (13:47 -0600)
committerTom Rini <trini@konsulko.com>
Wed, 31 May 2023 21:23:01 +0000 (17:23 -0400)
commit229d689e3c32164875667da282e496b858dbc608
treeeecf08dd3376548353ec92e67c4ad56215c95fe4
parentde06083c8808c57d55fffabb727a0d7c8c15612c
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>
drivers/mmc/mmc.c