]> git.baikalelectronics.ru Git - uboot.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)
commite095419c8390a26af3e405ff878d0d02ba9e2982
treeeecf08dd3376548353ec92e67c4ad56215c95fe4
parent44a61ccc961f5cb735d801193eacd1f104e9c494
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