Skip to contentSkip to conversation

Btrfs: fix uninitialized sync_pending

PATCH New Miao Xie 1 participant 1 message Aug 5, 2011 Btrfs file system

lore
Share & tools
lore

Miao Xie

author
#0 lore raw

PATCH 2/2 Btrfs: fix uninitialized sync_pending

sync_pending is uninitialized before it be used, fix it.

---
 fs/btrfs/volumes.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
fs/btrfs/volumes.c +1 -1
index 3c5f2fc..918adf6 100644
@@ -142,7 +142,7 @@ static noinline int run_scheduled_bios(struct btrfs_device *device)
 	unsigned long limit;
 	unsigned long last_waited = 0;
 	int force_reg = 0;
-	int sync_pending;
+	int sync_pending = 0;
 	struct blk_plug plug;
 
 	/*
Signature · 1 line
1.7.4