diff options
author | 2010-11-15 10:43:22 -0800 | |
---|---|---|
committer | 2011-01-17 13:01:25 -0600 | |
commit | 24562486be76cf223b8d911f45e1d26eb3364b13 (patch) | |
tree | 7ce33c533c12b4dc66d8afd836c7996d5769e325 /net/unix/af_unix.c | |
parent | ecryptfs: Fix ecryptfs_printk() size_t warnings (diff) | |
download | wireguard-linux-24562486be76cf223b8d911f45e1d26eb3364b13.tar.xz wireguard-linux-24562486be76cf223b8d911f45e1d26eb3364b13.zip |
ecryptfs: remove unnecessary decrypt when extending a file
Removes an unecessary page decrypt from ecryptfs_begin_write when the
page is beyond the current file size. Previously, the call to
ecryptfs_decrypt_page would result in a read of 0 bytes, but still
attempt to decrypt an entire page. This patch detects that case and
merely zeros the page before marking it up-to-date.
Signed-off-by: Frank Swiderski <fes@chromium.org>
Signed-off-by: Tyler Hicks <tyhicks@linux.vnet.ibm.com>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions