Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit df66e753 authored by Harshula Jayasuriya's avatar Harshula Jayasuriya Committed by J. Bruce Fields
Browse files

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: default avatarHarshula Jayasuriya <harshula@redhat.com>
Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
parent e4daf1ff
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment