Skip to content

Commit 1e67130

Browse files
Chandrakanth Patilroot
authored andcommitted
scsi: mpi3mr: Mark device strings as nonstring
JIRA: https://issues.redhat.com/browse/RHEL-80698 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> (cherry picked from commit e1de43a) Signed-off-by: Chandrakanth Patil <chanpati@redhat.com>
1 parent 87ab04f commit 1e67130

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/scsi/mpi3mr/mpi3mr_transport.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,10 @@ struct rep_manu_reply {
103103
u8 reserved0[2];
104104
u8 sas_format;
105105
u8 reserved2[3];
106-
u8 vendor_id[SAS_EXPANDER_VENDOR_ID_LEN];
107-
u8 product_id[SAS_EXPANDER_PRODUCT_ID_LEN];
108-
u8 product_rev[SAS_EXPANDER_PRODUCT_REV_LEN];
109-
u8 component_vendor_id[SAS_EXPANDER_COMPONENT_VENDOR_ID_LEN];
106+
u8 vendor_id[SAS_EXPANDER_VENDOR_ID_LEN] __nonstring;
107+
u8 product_id[SAS_EXPANDER_PRODUCT_ID_LEN] __nonstring;
108+
u8 product_rev[SAS_EXPANDER_PRODUCT_REV_LEN] __nonstring;
109+
u8 component_vendor_id[SAS_EXPANDER_COMPONENT_VENDOR_ID_LEN] __nonstring;
110110
u16 component_id;
111111
u8 component_revision_id;
112112
u8 reserved3;

0 commit comments

Comments
 (0)