Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
031ded82
Commit
031ded82
authored
Aug 13, 2004
by
Jeff Garzik
Committed by
Linus Torvalds
Aug 13, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] Fix NFS client screw-up in fcntl f_op removal
Fix stupid thinkos in the fcntl f_op removal code.
parent
e8ce2f4e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
fs/nfs/file.c
fs/nfs/file.c
+2
-2
No files found.
fs/nfs/file.c
View file @
031ded82
...
...
@@ -72,7 +72,7 @@ struct inode_operations nfs_file_inode_operations = {
static
int
nfs_check_flags
(
int
flags
)
{
if
(
flags
&
(
O_APPEND
|
O_DIRECT
))
if
(
(
flags
&
(
O_APPEND
|
O_DIRECT
))
==
(
O_APPEND
|
O_DIRECT
))
return
-
EINVAL
;
return
0
;
...
...
@@ -89,7 +89,7 @@ nfs_file_open(struct inode *inode, struct file *filp)
int
res
;
res
=
nfs_check_flags
(
filp
->
f_flags
);
if
(
!
res
)
if
(
res
)
return
res
;
lock_kernel
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment