From: Harshula Jayasuriya Date: Tue, 23 Jul 2013 04:05:14 +0000 (+1000) Subject: nfsd: nfs4_file_get_access: need to be more careful with O_RDWR X-Git-Tag: v3.12-rc1~62^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df66e75395c839c3a373bae897dbb1248f741b45;p=pandora-kernel.git 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 Signed-off-by: J. Bruce Fields --- Reading git-diff-tree failed