diff options
author | Jan Kara <jack@suse.cz> | 2021-05-03 11:54:24 +0200 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2021-08-11 16:54:44 +0200 |
commit | 979a6e28dd969a2222545001f79566b4bfaf06c0 (patch) | |
tree | 2f84f4228fa2b68b9e108a0031e3bca1f83bba65 /fs/udf/inode.c | |
parent | b3c8c9801eb9b8e0f73246b4b14efbde1a4c570c (diff) |
udf: Get rid of 0-length arrays in struct fileIdentDesc
Get rid of 0-length arrays in struct fileIdentDesc. This requires a bit
of cleaning up as the second variable length array in this structure is
often used and the code abuses the fact that the first two arrays have
the same type and offset in struct fileIdentDesc.
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/udf/inode.c')
-rw-r--r-- | fs/udf/inode.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/udf/inode.c b/fs/udf/inode.c index 4917670860a0..1d6b7a50736b 100644 --- a/fs/udf/inode.c +++ b/fs/udf/inode.c @@ -390,8 +390,7 @@ struct buffer_head *udf_expand_dir_adinicb(struct inode *inode, dfibh.eoffset += (sfibh.eoffset - sfibh.soffset); dfi = (struct fileIdentDesc *)(dbh->b_data + dfibh.soffset); if (udf_write_fi(inode, sfi, dfi, &dfibh, sfi->impUse, - sfi->fileIdent + - le16_to_cpu(sfi->lengthOfImpUse))) { + udf_get_fi_ident(sfi))) { iinfo->i_alloc_type = ICBTAG_FLAG_AD_IN_ICB; brelse(dbh); return NULL; |