diff mbox

btrfs-progs: fix uninit variables in btrfs-image

Message ID 1464747347-16979-1-git-send-email-lufq.fnst@cn.fujitsu.com (mailing list archive)
State Accepted
Headers show

Commit Message

Lu Fengqi June 1, 2016, 2:15 a.m. UTC
Signed-off-by: Lu Fengqi <lufq.fnst@cn.fujitsu.com>
---
 btrfs-image.c | 1 +
 1 file changed, 1 insertion(+)

Comments

David Sterba June 1, 2016, 11:26 a.m. UTC | #1
On Wed, Jun 01, 2016 at 10:15:47AM +0800, Lu Fengqi wrote:
> Signed-off-by: Lu Fengqi <lufq.fnst@cn.fujitsu.com>

Patch folded to the original.
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/btrfs-image.c b/btrfs-image.c
index d121951..7c2fa94 100644
--- a/btrfs-image.c
+++ b/btrfs-image.c
@@ -1757,6 +1757,7 @@  static void *restore_worker(void *data)
 		if (!mdres->fixup_offset) {
 			while (size) {
 				u64 chunk_size = size;
+				physical_dup = 0;
 				if (!mdres->multi_devices && !mdres->old_restore)
 					bytenr = logical_to_physical(mdres,
 						     async->start + offset,