Skip to content

Commit

Permalink
affs: struct affs_data_head: Replace 1-element array with flexible array
Browse files Browse the repository at this point in the history
Replace the deprecated[1] use of a 1-element array in
struct affs_data_head with a modern flexible array.

No binary differences are present after this conversion.

Link: KSPP#79 [1]
Reviewed-by: Gustavo A. R. Silva <[email protected]>
Signed-off-by: Kees Cook <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
  • Loading branch information
kees authored and kdave committed Jul 11, 2024
1 parent 38a381a commit e5f5ee8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/affs/amigaffs.h
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ struct affs_data_head
__be32 size;
__be32 next;
__be32 checksum;
u8 data[1]; /* depends on block size */
u8 data[]; /* depends on block size */
};

/* Permission bits */
Expand Down

0 comments on commit e5f5ee8

Please sign in to comment.