diff options
Diffstat (limited to 'fs/nfs/dir.c')
-rw-r--r-- | fs/nfs/dir.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c index e093e73178b7..bf4e5f47d686 100644 --- a/fs/nfs/dir.c +++ b/fs/nfs/dir.c | |||
@@ -1362,13 +1362,6 @@ static int nfs_finish_open(struct nfs_open_context *ctx, | |||
1362 | ctx->dentry = dget(dentry); | 1362 | ctx->dentry = dget(dentry); |
1363 | } | 1363 | } |
1364 | 1364 | ||
1365 | /* If the open_intent is for execute, we have an extra check to make */ | ||
1366 | if (ctx->mode & FMODE_EXEC) { | ||
1367 | err = nfs_may_open(dentry->d_inode, ctx->cred, open_flags); | ||
1368 | if (err < 0) | ||
1369 | goto out; | ||
1370 | } | ||
1371 | |||
1372 | err = finish_open(file, dentry, do_open, opened); | 1365 | err = finish_open(file, dentry, do_open, opened); |
1373 | if (err) | 1366 | if (err) |
1374 | goto out; | 1367 | goto out; |