Trond Myklebust 2d0dbc6ae8 NFSv4: Fix unnecessary delegation returns in nfs4_do_open
While nfs4_do_open() expects the fmode argument to be restricted to
combinations of FMODE_READ and FMODE_WRITE, both nfs4_atomic_open()
and nfs4_proc_create will pass the nfs_open_context->mode,
which contains the full fmode_t.

This patch ensures that nfs4_do_open strips the other fmode_t bits,
fixing a problem in which the nfs4_do_open call would result in an
unnecessary delegation return.

Reported-by: Fred Isaman <iisaman@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Cc: stable@vger.kernel.org
2012-06-08 11:08:42 -04:00
..
2012-05-04 14:59:51 -04:00
2012-05-29 10:43:51 -07:00
2012-06-05 18:38:47 -04:00
2012-05-14 17:30:26 -07:00
2012-05-29 10:43:51 -07:00
2012-05-14 17:42:22 -07:00
2012-05-14 17:42:22 -07:00
2012-03-11 15:14:16 -04:00
2012-05-29 10:43:51 -07:00
2012-05-22 16:45:42 -04:00
2012-05-29 10:43:51 -07:00
2012-06-05 18:38:47 -04:00