From 17fd32d0a2f0aa042cdac1c0d31d6401ba10c7c5 Mon Sep 17 00:00:00 2001 From: Koushik Dutta Date: Sat, 22 Oct 2011 22:34:58 -0700 Subject: [PATCH] zero the partiiton before writing to it. Change-Id: I4717fd45c822a2026f907914c900cf8c60d8a48d --- mmcutils/mmcutils.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mmcutils/mmcutils.c b/mmcutils/mmcutils.c index 492dadc..ed058c4 100644 --- a/mmcutils/mmcutils.c +++ b/mmcutils/mmcutils.c @@ -599,6 +599,7 @@ int cmd_mmc_restore_raw_partition(const char *partition, const char *filename) return mmc_raw_copy(p, filename); } else { + mmc_raw_dump_internal("/dev/zero", partition); return mmc_raw_dump_internal(filename, partition); } }