Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f46dbe3d authored by Chris Mason's avatar Chris Mason
Browse files

btrfs: init ref_index to zero in add_inode_ref

parent 1037a5af
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);