Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci-2.6.23
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci-2.6.23
Commits
76723de0
Commit
76723de0
authored
Sep 15, 2006
by
Trond Myklebust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NFSv4: Fix incorrect semaphore release in _nfs4_do_open()
Signed-off-by:
Trond Myklebust
<
Trond.Myklebust@netapp.com
>
parent
7a524111
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
fs/nfs/nfs4proc.c
fs/nfs/nfs4proc.c
+3
-3
No files found.
fs/nfs/nfs4proc.c
View file @
76723de0
...
...
@@ -970,7 +970,7 @@ static int _nfs4_do_open(struct inode *dir, struct dentry *dentry, int flags, st
status
=
-
ENOMEM
;
opendata
=
nfs4_opendata_alloc
(
dentry
,
sp
,
flags
,
sattr
);
if
(
opendata
==
NULL
)
goto
err_
put_state_owner
;
goto
err_
release_rwsem
;
status
=
_nfs4_proc_open
(
opendata
);
if
(
status
!=
0
)
...
...
@@ -989,11 +989,11 @@ static int _nfs4_do_open(struct inode *dir, struct dentry *dentry, int flags, st
return
0
;
err_opendata_free:
nfs4_opendata_free
(
opendata
);
err_release_rwsem:
up_read
(
&
clp
->
cl_sem
);
err_put_state_owner:
nfs4_put_state_owner
(
sp
);
out_err:
/* Note: clp->cl_sem must be released before nfs4_put_open_state()! */
up_read
(
&
clp
->
cl_sem
);
*
res
=
NULL
;
return
status
;
}
...
...
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