Skip to content

Commit

Permalink
eCryptfs: increment extent_offset once per loop interation
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Michael Halcrow authored and Linus Torvalds committed Nov 5, 2007
1 parent 01aae97 commit 778d1a2
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions fs/ecryptfs/crypto.c
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,6 @@ int ecryptfs_encrypt_page(struct page *page)
"\n", rc);
goto out;
}
extent_offset++;
}
out:
kfree(enc_extent_virt);
Expand Down Expand Up @@ -640,7 +639,6 @@ int ecryptfs_decrypt_page(struct page *page)
"rc = [%d]\n", __FUNCTION__, rc);
goto out;
}
extent_offset++;
}
out:
kfree(enc_extent_virt);
Expand Down

0 comments on commit 778d1a2

Please sign in to comment.