Skip to content

Commit

Permalink
ecryptfs: fix truncation error in ecryptfs_read_update_atime
Browse files Browse the repository at this point in the history
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 <[email protected]>
Cc: Jeff Moyer <[email protected]>
Cc: Christoph Hellwig <[email protected]>
Cc: Eric Sandeen <[email protected]>
Signed-off-by: Tyler Hicks <[email protected]>
  • Loading branch information
edward6 authored and Tyler Hicks committed Jan 17, 2011
1 parent e78bf5e commit 38a708d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/ecryptfs/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ static ssize_t ecryptfs_read_update_atime(struct kiocb *iocb,
const struct iovec *iov,
unsigned long nr_segs, loff_t pos)
{
int rc;
ssize_t rc;
struct dentry *lower_dentry;
struct vfsmount *lower_vfsmount;
struct file *file = iocb->ki_filp;
Expand Down

0 comments on commit 38a708d

Please sign in to comment.