9
0
Fork 0

commands: nandtest: Fix incorrect size for memset in do_nandtest

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Alexander Shiyan 2013-07-07 16:27:16 +04:00 committed by Sascha Hauer
parent 0a9ec16872
commit b90bceb6a9
1 changed files with 1 additions and 1 deletions

View File

@ -181,7 +181,7 @@ static int do_nandtest(int argc, char *argv[])
markbad = 0;
fd = -1;
memset(ecc_stats, 0, MAX_ECC_BITS);
memset(ecc_stats, 0, sizeof(*ecc_stats));
while ((opt = getopt(argc, argv, "ms:i:o:l:t")) > 0) {
switch (opt) {