From: Chris Mason Date: Tue, 9 Oct 2012 15:17:20 +0000 (-0400) Subject: btrfs: init ref_index to zero in add_inode_ref X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f46dbe3dee853f8a860f889cb2b7ff4c624f2a7a;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git btrfs: init ref_index to zero in add_inode_ref Signed-off-by: Chris Mason --- diff --git a/fs/btrfs/tree-log.c b/fs/btrfs/tree-log.c index 67eab2d4d8a9..e9ebb472b28b 100644 --- a/fs/btrfs/tree-log.c +++ b/fs/btrfs/tree-log.c @@ -1033,7 +1033,7 @@ static noinline int add_inode_ref(struct btrfs_trans_handle *trans, int log_ref_ver = 0; u64 parent_objectid; u64 inode_objectid; - u64 ref_index; + u64 ref_index = 0; int ref_struct_size; ref_ptr = btrfs_item_ptr_offset(eb, slot);