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
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 @@ static int jfs_set_acl(tid_t tid, struct inode *inode, int type,
...
@@ -118,15 +118,16 @@ static int jfs_set_acl(tid_t tid, struct inode *inode, int type,
static
int
jfs_check_acl
(
struct
inode
*
inode
,
int
mask
)
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
);
struct
posix_acl
*
acl
=
jfs_get_acl
(
inode
,
ACL_TYPE_ACCESS
);
if
(
IS_ERR
(
acl
))
if
(
IS_ERR
(
acl
))
return
PTR_ERR
(
acl
);
return
PTR_ERR
(
acl
);
if
(
acl
)
{
int
error
=
posix_acl_permission
(
inode
,
acl
,
mask
);
posix_acl_release
(
acl
);
posix_acl_release
(
acl
);
return
error
;
}
}
if
(
inode
->
i_acl
)
return
posix_acl_permission
(
inode
,
inode
->
i_acl
,
mask
);
return
-
EAGAIN
;
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