diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index 6d8dd4438c76ca388109d5b83ebc6018a6f21c8b..b38187573108e4263c02552c62746a790a2308a3 100644 --- a/fs/btrfs/volumes.c +++ b/fs/btrfs/volumes.c @@ -547,7 +547,7 @@ int btrfs_add_device(struct btrfs_trans_handle *trans, struct extent_buffer *leaf; struct btrfs_key key; unsigned long ptr; - u64 free_devid; + u64 free_devid = 0; root = root->fs_info->chunk_root;