]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
scsi: mptfusion: Mark device strings as nonstring
authorKees Cook <kees@kernel.org>
Wed, 5 Feb 2025 21:39:01 +0000 (13:39 -0800)
committerKees Cook <kees@kernel.org>
Fri, 28 Feb 2025 19:51:31 +0000 (11:51 -0800)
In preparation for memtostr*() checking that its source is marked as
nonstring, annotate the device strings accordingly.

Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com> # SCSI
Signed-off-by: Kees Cook <kees@kernel.org>
drivers/message/fusion/mptsas.c

index 7e79da9684ed500aa01079053db6e29c650ab320..185c08eab4ca1d9aa7ccf07f645f16d4844b289e 100644 (file)
@@ -2834,10 +2834,10 @@ struct rep_manu_reply{
        u8 sas_format:1;
        u8 reserved1:7;
        u8 reserved2[3];
-       u8 vendor_id[SAS_EXPANDER_VENDOR_ID_LEN];
-       u8 product_id[SAS_EXPANDER_PRODUCT_ID_LEN];
-       u8 product_rev[SAS_EXPANDER_PRODUCT_REV_LEN];
-       u8 component_vendor_id[SAS_EXPANDER_COMPONENT_VENDOR_ID_LEN];
+       u8 vendor_id[SAS_EXPANDER_VENDOR_ID_LEN] __nonstring;
+       u8 product_id[SAS_EXPANDER_PRODUCT_ID_LEN] __nonstring;
+       u8 product_rev[SAS_EXPANDER_PRODUCT_REV_LEN] __nonstring;
+       u8 component_vendor_id[SAS_EXPANDER_COMPONENT_VENDOR_ID_LEN] __nonstring;
        u16 component_id;
        u8 component_revision_id;
        u8 reserved3;