Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Michael Halcrow and committed by
Linus Torvalds
778d1a2b 01aae971

-2
-2
fs/ecryptfs/crypto.c
··· 504 504 "\n", rc); 505 505 goto out; 506 506 } 507 - extent_offset++; 508 507 } 509 508 out: 510 509 kfree(enc_extent_virt); ··· 639 640 "rc = [%d]\n", __FUNCTION__, rc); 640 641 goto out; 641 642 } 642 - extent_offset++; 643 643 } 644 644 out: 645 645 kfree(enc_extent_virt);