aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ecryptfs/crypto.c
diff options
context:
space:
mode:
authorRoberto Sassu <roberto.sassu@polito.it>2010-11-03 11:11:34 +0100
committerTyler Hicks <tyhicks@linux.vnet.ibm.com>2011-01-17 11:24:43 -0600
commit0abe1169470571c473ee720c35fe5b3481c46c46 (patch)
tree3261e72681db07a04a56f31af0edb536b9b7a5e2 /fs/ecryptfs/crypto.c
parentecryptfs: test lower_file pointer when lower_file_mutex is locked (diff)
downloadlinux-dev-0abe1169470571c473ee720c35fe5b3481c46c46.tar.xz
linux-dev-0abe1169470571c473ee720c35fe5b3481c46c46.zip
ecryptfs: fixed testing of file descriptor flags
This patch replaces the check (lower_file->f_flags & O_RDONLY) with ((lower_file & O_ACCMODE) == O_RDONLY). Signed-off-by: Roberto Sassu <roberto.sassu@polito.it> Signed-off-by: Tyler Hicks <tyhicks@linux.vnet.ibm.com>
Diffstat (limited to 'fs/ecryptfs/crypto.c')
0 files changed, 0 insertions, 0 deletions