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

Commit 4e562013 authored by Maninder Singh's avatar Maninder Singh Committed by Theodore Ts'o
Browse files

ext4: fix copy paste error in ext4_swap_extents()



This bug was found by a static code checker tool for copy paste
problems.

Signed-off-by: default avatarManinder Singh <maninder1.s@samsung.com>
Signed-off-by: default avatarVaneet Narang <v.narang@samsung.com>
Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
parent aec51758
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -5836,7 +5836,7 @@ ext4_swap_extents(handle_t *handle, struct inode *inode1,
			if (e1_blk > lblk1)
			if (e1_blk > lblk1)
				next1 = e1_blk;
				next1 = e1_blk;
			if (e2_blk > lblk2)
			if (e2_blk > lblk2)
				next2 = e1_blk;
				next2 = e2_blk;
			/* Do we have something to swap */
			/* Do we have something to swap */
			if (next1 == EXT_MAX_BLOCKS || next2 == EXT_MAX_BLOCKS)
			if (next1 == EXT_MAX_BLOCKS || next2 == EXT_MAX_BLOCKS)
				goto finish;
				goto finish;