aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ecryptfs
diff options
context:
space:
mode:
authorMichael Halcrow <mhalcrow@us.ibm.com>2007-11-05 17:51:03 -0500
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-11-05 18:12:33 -0500
commit778d1a2bd42ae862a6c6d20a1c3af5e45b3c1924 (patch)
treeafc2eed74ad70fb03b0734b13d61c1bd9e6089f3 /fs/ecryptfs
parent01aae97196f2cdfbfebc5a0365bad82d98975588 (diff)
eCryptfs: increment extent_offset once per loop interation
The extent_offset is getting incremented twice per loop iteration through any given page. It should only be getting incremented once. This bug should only impact hosts with >4K page sizes. Signed-off-by: Michael Halcrow <mhalcrow@us.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/ecryptfs')
-rw-r--r--fs/ecryptfs/crypto.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/ecryptfs/crypto.c b/fs/ecryptfs/crypto.c
index 9d70289f7df3..9ea4769fbb66 100644
--- a/fs/ecryptfs/crypto.c
+++ b/fs/ecryptfs/crypto.c
@@ -504,7 +504,6 @@ int ecryptfs_encrypt_page(struct page *page)
504 "\n", rc); 504 "\n", rc);
505 goto out; 505 goto out;
506 } 506 }
507 extent_offset++;
508 } 507 }
509out: 508out:
510 kfree(enc_extent_virt); 509 kfree(enc_extent_virt);
@@ -640,7 +639,6 @@ int ecryptfs_decrypt_page(struct page *page)
640 "rc = [%d]\n", __FUNCTION__, rc); 639 "rc = [%d]\n", __FUNCTION__, rc);
641 goto out; 640 goto out;
642 } 641 }
643 extent_offset++;
644 } 642 }
645out: 643out:
646 kfree(enc_extent_virt); 644 kfree(enc_extent_virt);