Unverified Commit cfa61250 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!12900 ext4: fix double brelse() the buffer of the extents path

parents 594b2694 202a2ed3
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1890,6 +1890,7 @@ static void ext4_ext_try_to_merge_up(handle_t *handle,
	path[0].p_hdr->eh_max = cpu_to_le16(max_root);

	brelse(path[1].p_bh);
	path[1].p_bh = NULL;
	ext4_free_blocks(handle, inode, NULL, blk, 1,
			 EXT4_FREE_BLOCKS_METADATA | EXT4_FREE_BLOCKS_FORGET);
}