提交 778d1a2b 编写于 作者: M Michael Halcrow 提交者: Linus Torvalds

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: NMichael Halcrow <mhalcrow@us.ibm.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 01aae971
......@@ -504,7 +504,6 @@ int ecryptfs_encrypt_page(struct page *page)
"\n", rc);
goto out;
}
extent_offset++;
}
out:
kfree(enc_extent_virt);
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册