diff options
author | Edward Shishkin <edward.shishkin@gmail.com> | 2010-10-29 18:11:50 -0400 |
---|---|---|
committer | Tyler Hicks <tyhicks@linux.vnet.ibm.com> | 2011-01-17 11:44:30 -0500 |
commit | 38a708d7759476318d0eec64af174513032ec67a (patch) | |
tree | e3cd94359191e72c26ea6a0ecc37c1933b9dcc71 /fs | |
parent | e78bf5e6cbe837daa6ab628a5f679548742994d3 (diff) |
ecryptfs: fix truncation error in ecryptfs_read_update_atime
This is similar to the bug found in direct-io not so long ago.
Fix up truncation (ssize_t->int). This only matters with >2G
reads/writes, which the kernel doesn't permit.
Signed-off-by: Edward Shishkin <edward.shishkin@gmail.com>
Cc: Jeff Moyer <jmoyer@redhat.com>
Cc: Christoph Hellwig <hch@infradead.org>
Cc: Eric Sandeen <esandeen@redhat.com>
Signed-off-by: Tyler Hicks <tyhicks@linux.vnet.ibm.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/ecryptfs/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ecryptfs/file.c b/fs/ecryptfs/file.c index 91da02987bff..679817e82484 100644 --- a/fs/ecryptfs/file.c +++ b/fs/ecryptfs/file.c | |||
@@ -47,7 +47,7 @@ static ssize_t ecryptfs_read_update_atime(struct kiocb *iocb, | |||
47 | const struct iovec *iov, | 47 | const struct iovec *iov, |
48 | unsigned long nr_segs, loff_t pos) | 48 | unsigned long nr_segs, loff_t pos) |
49 | { | 49 | { |
50 | int rc; | 50 | ssize_t rc; |
51 | struct dentry *lower_dentry; | 51 | struct dentry *lower_dentry; |
52 | struct vfsmount *lower_vfsmount; | 52 | struct vfsmount *lower_vfsmount; |
53 | struct file *file = iocb->ki_filp; | 53 | struct file *file = iocb->ki_filp; |