commit | a3ac973076df54493bfcfa95f186907c7dba6ed2 | [log] [tgz] |
---|---|---|
author | Matthew Wilcox <mawilcox@microsoft.com> | Thu Jun 07 07:57:19 2018 -0700 |
committer | Kees Cook <keescook@chromium.org> | Tue Jun 12 16:19:22 2018 -0700 |
tree | 24046fc706aa00b83e6f28b3024e15f0bbb4b7bf | |
parent | b2303d7bf76d36a5176c793df628d302be29ab82 [diff] [blame] |
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>
diff --git a/fs/jffs2/acl.h b/fs/jffs2/acl.h index 2e2b574..12d0271 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