sweettea / rpms / btrfs-progs

Forked from rpms/btrfs-progs 8 months ago
Clone
5cc525
diff --git a/utils.c b/utils.c
5cc525
index a5ffb62..f6686c6 100644
5cc525
--- a/utils.c
5cc525
+++ b/utils.c
5cc525
@@ -502,6 +502,7 @@ int btrfs_add_to_fsid(struct btrfs_trans_handle *trans,
5cc525
 	device->bytes_used = 0;
5cc525
 	device->total_ios = 0;
5cc525
 	device->dev_root = root->fs_info->dev_root;
5cc525
+	INIT_LIST_HEAD(&device->dev_list);
5cc525
 
5cc525
 	ret = btrfs_add_device(trans, root, device);
5cc525
 	BUG_ON(ret);