diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2011-07-24 00:18:58 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2011-07-24 16:12:01 +0200 |
commit | 963945bf93e46b9bf71a07bf9c78183e0f57733a (patch) | |
tree | 736c84e9a31b2dd736293ca117688527e3a5a194 /fs/jffs2/acl.h | |
parent | 9p: close ACL leaks (diff) | |
download | linux-963945bf93e46b9bf71a07bf9c78183e0f57733a.tar.xz linux-963945bf93e46b9bf71a07bf9c78183e0f57733a.zip |
fix jffs2 ACLs on big-endian with 16bit mode_t
casting int * to mode_t * is not a good thing - on a *lot* of big-endian
architectures mode_t happens to be smaller than int and there it breaks
quite spectaculary...
Fucked-up-by: commit cfc8dc6f6f69ede939e09c2af06a01adee577285
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/jffs2/acl.h')
-rw-r--r-- | fs/jffs2/acl.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/jffs2/acl.h b/fs/jffs2/acl.h index 5e42de8d9541..9973073b9c47 100644 --- a/fs/jffs2/acl.h +++ b/fs/jffs2/acl.h @@ -28,7 +28,7 @@ struct jffs2_acl_header { extern int jffs2_check_acl(struct inode *, int); extern int jffs2_acl_chmod(struct inode *); -extern int jffs2_init_acl_pre(struct inode *, struct inode *, int *); +extern int jffs2_init_acl_pre(struct inode *, struct inode *, mode_t *); extern int jffs2_init_acl_post(struct inode *); extern const struct xattr_handler jffs2_acl_access_xattr_handler; |