projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ceph: return errors from posix_acl_equiv_mode() correctly
[linux-2.6-microblaze.git]
/
fs
/
ceph
/
acl.c
diff --git
a/fs/ceph/acl.c
b/fs/ceph/acl.c
index
3351ea1
..
027408d
100644
(file)
--- a/
fs/ceph/acl.c
+++ b/
fs/ceph/acl.c
@@
-185,10
+185,10
@@
int ceph_pre_init_acls(struct inode *dir, umode_t *mode,
return err;
if (acl) {
-
int ret
= posix_acl_equiv_mode(acl, mode);
- if (
ret
< 0)
+
err
= posix_acl_equiv_mode(acl, mode);
+ if (
err
< 0)
goto out_err;
- if (
ret
== 0) {
+ if (
err
== 0) {
posix_acl_release(acl);
acl = NULL;
}