diff options
| author | Trond Myklebust <[email protected]> | 2012-06-08 14:58:09 +0000 |
|---|---|---|
| committer | Trond Myklebust <[email protected]> | 2012-06-08 15:08:42 +0000 |
| commit | 2d0dbc6ae8a5194aaecb9cfffb9053f38fce8b86 (patch) | |
| tree | b29655eb58107bc9e1413b86e68d35c8de3806cd /arch/powerpc/lib/code-patching.c | |
| parent | NFSv4.1: Convert another trivial printk into a dprintk (diff) | |
| download | kernel-2d0dbc6ae8a5194aaecb9cfffb9053f38fce8b86.tar.gz kernel-2d0dbc6ae8a5194aaecb9cfffb9053f38fce8b86.zip | |
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 <[email protected]>
Signed-off-by: Trond Myklebust <[email protected]>
Cc: [email protected]
Diffstat (limited to 'arch/powerpc/lib/code-patching.c')
0 files changed, 0 insertions, 0 deletions
