Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1688685

[PATCH 1/1] ext4: correcting copy paste error.

From Maninder Singh <maninder1.s@samsung.com>
Newsgroups linux.kernel
Subject [PATCH 1/1] ext4: correcting copy paste error.
Date 2017-07-17 08:20 +0200
Message-ID <u47xT-1j9-3@gated-at.bofh.it> (permalink)
References <u47xU-1j9-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Error reported by static tool for copy paste
issue, fixing the same.

Signed-off-by: Maninder Singh <maninder1.s@samsung.com>
Signed-off-by: Vaneet Narang <v.narang@samsung.com>
---
 fs/ext4/extents.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c
index 2a97dff..5d337ca 100644
--- a/fs/ext4/extents.c
+++ b/fs/ext4/extents.c
@@ -5837,7 +5837,7 @@ int ext4_insert_range(struct inode *inode, loff_t offset, loff_t len)
 			if (e1_blk > lblk1)
 				next1 = e1_blk;
 			if (e2_blk > lblk2)
-				next2 = e1_blk;
+				next2 = e2_blk;
 			/* Do we have something to swap */
 			if (next1 == EXT_MAX_BLOCKS || next2 == EXT_MAX_BLOCKS)
 				goto finish;
-- 
1.9.1

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

[PATCH 1/1] ext4: correcting copy paste error. Maninder Singh <maninder1.s@samsung.com> - 2017-07-17 08:20 +0200

csiph-web