Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
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
Commits
d5bb68ad
Commit
d5bb68ad
authored
Jun 24, 2009
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
another race fix in jfs_check_acl()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
72c04902
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
fs/jfs/acl.c
fs/jfs/acl.c
+7
-6
No files found.
fs/jfs/acl.c
View file @
d5bb68ad
...
...
@@ -118,15 +118,16 @@ out:
static
int
jfs_check_acl
(
struct
inode
*
inode
,
int
mask
)
{
if
(
inode
->
i_acl
==
ACL_NOT_CACHED
)
{
struct
posix_acl
*
acl
=
jfs_get_acl
(
inode
,
ACL_TYPE_ACCESS
);
if
(
IS_ERR
(
acl
))
return
PTR_ERR
(
acl
);
struct
posix_acl
*
acl
=
jfs_get_acl
(
inode
,
ACL_TYPE_ACCESS
);
if
(
IS_ERR
(
acl
))
return
PTR_ERR
(
acl
);
if
(
acl
)
{
int
error
=
posix_acl_permission
(
inode
,
acl
,
mask
);
posix_acl_release
(
acl
);
return
error
;
}
if
(
inode
->
i_acl
)
return
posix_acl_permission
(
inode
,
inode
->
i_acl
,
mask
);
return
-
EAGAIN
;
}
...
...
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