nfsd: nfs4_file_get_access: need to be more careful with O_RDWR
authorHarshula Jayasuriya <harshula@redhat.com>
Tue, 23 Jul 2013 04:05:14 +0000 (14:05 +1000)
committerJ. Bruce Fields <bfields@redhat.com>
Tue, 23 Jul 2013 16:26:51 +0000 (12:26 -0400)
commitdf66e75395c839c3a373bae897dbb1248f741b45
treeba8ef2c7cae86d62998ea03157950de1829a83ab
parente4daf1ffbe6cc3b12aab4d604e627829e93e9914
nfsd: nfs4_file_get_access: need to be more careful with O_RDWR

If fi_fds = {non-NULL, NULL, non-NULL} and oflag = O_WRONLY
the WARN_ON_ONCE(!(fp->fi_fds[oflag] || fp->fi_fds[O_RDWR]))
doesn't trigger when it should.

Signed-off-by: Harshula Jayasuriya <harshula@redhat.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4state.c
This page took 0.024603 seconds and 5 git commands to generate.