]> git.itanic.dy.fi Git - linux-stable/commitdiff
udf: Avoid unneeded variable length array in struct fileIdentDesc
authorJan Kara <jack@suse.cz>
Tue, 3 Oct 2023 09:19:02 +0000 (11:19 +0200)
committerJan Kara <jack@suse.cz>
Tue, 3 Oct 2023 09:27:52 +0000 (11:27 +0200)
impUse variable length array in struct fileIdentDesc is never used.
It serves only for documentation purposes of the on-disk format. Remove
it from the struct so that it doesn't confuse the compiler and
reviewers.

Reported-by: "Gustavo A. R. Silva" <gustavoars@kernel.org>
References: https://lore.kernel.org/all/ZRrsYkKIQe8K6F/t@work
Signed-off-by: Jan Kara <jack@suse.cz>
fs/udf/ecma_167.h

index de17a97e8667425ae77d4452dc84afafa8c1377d..415b050b977d25632e93c3cb89033fa971d48e21 100644 (file)
@@ -471,7 +471,7 @@ struct fileIdentDesc {
        uint8_t         lengthFileIdent;
        struct long_ad  icb;
        __le16          lengthOfImpUse;
-       uint8_t         impUse[];
+       /* uint8_t      impUse[]; */
        /* uint8_t      fileIdent[]; */
        /* uint8_t      padding[]; */
 } __packed;