summaryrefslogtreecommitdiffstats
path: root/fs/jffs2/acl.h
diff options
context:
space:
mode:
authorMatthew Wilcox2018-06-07 16:57:19 +0200
committerKees Cook2018-06-13 01:19:22 +0200
commita3ac973076df54493bfcfa95f186907c7dba6ed2 (patch)
tree24046fc706aa00b83e6f28b3024e15f0bbb4b7bf /fs/jffs2/acl.h
parentConvert vhost to struct_size (diff)
downloadkernel-qcow2-linux-a3ac973076df54493bfcfa95f186907c7dba6ed2.tar.gz
kernel-qcow2-linux-a3ac973076df54493bfcfa95f186907c7dba6ed2.tar.xz
kernel-qcow2-linux-a3ac973076df54493bfcfa95f186907c7dba6ed2.zip
Convert jffs2 acl to struct_size
Need to tell the compiler that the acl entries follow the acl header. Signed-off-by: Matthew Wilcox <mawilcox@microsoft.com> Signed-off-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'fs/jffs2/acl.h')
-rw-r--r--fs/jffs2/acl.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/jffs2/acl.h b/fs/jffs2/acl.h
index 2e2b5745c3b7..12d0271bdde3 100644
--- a/fs/jffs2/acl.h
+++ b/fs/jffs2/acl.h
@@ -22,6 +22,7 @@ struct jffs2_acl_entry_short {
struct jffs2_acl_header {
jint32_t a_version;
+ struct jffs2_acl_entry a_entries[];
};
#ifdef CONFIG_JFFS2_FS_POSIX_ACL