Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

scsi: mpi3mr: Mark device strings as nonstring

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>

+4 -4
+4 -4
drivers/scsi/mpi3mr/mpi3mr_transport.c
··· 105 105 u8 reserved0[2]; 106 106 u8 sas_format; 107 107 u8 reserved2[3]; 108 - u8 vendor_id[SAS_EXPANDER_VENDOR_ID_LEN]; 109 - u8 product_id[SAS_EXPANDER_PRODUCT_ID_LEN]; 110 - u8 product_rev[SAS_EXPANDER_PRODUCT_REV_LEN]; 111 - u8 component_vendor_id[SAS_EXPANDER_COMPONENT_VENDOR_ID_LEN]; 108 + u8 vendor_id[SAS_EXPANDER_VENDOR_ID_LEN] __nonstring; 109 + u8 product_id[SAS_EXPANDER_PRODUCT_ID_LEN] __nonstring; 110 + u8 product_rev[SAS_EXPANDER_PRODUCT_REV_LEN] __nonstring; 111 + u8 component_vendor_id[SAS_EXPANDER_COMPONENT_VENDOR_ID_LEN] __nonstring; 112 112 u16 component_id; 113 113 u8 component_revision_id; 114 114 u8 reserved3;