commit | 67bb9731221a70e23d185b7de43dd27cc986fa00 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Tue Jan 17 10:47:19 2023 -0700 |
committer | Tom Rini <trini@konsulko.com> | Mon Jan 23 18:11:39 2023 -0500 |
tree | 1d423806371c0390fe7437e68fd7a8987a3c506f | |
parent | 3f23ce2b6c58a489b3377e1fc1449ca293892546 [diff] |
sandbox: mmc: Start off with a zeroed file When running multiple tests the mmc emulator calls malloc() to obtain the memory for its disk image. Since the memory is not cleared, it is possible that it happens to contain a partition table. The dm_test_part() test (for one) relies on mmc0 being empty on startup. Zero the memory to ensure that it is. Signed-off-by: Simon Glass <sjg@chromium.org>