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: mptfusion: 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/message/fusion/mptsas.c
··· 2834 2834 u8 sas_format:1; 2835 2835 u8 reserved1:7; 2836 2836 u8 reserved2[3]; 2837 - u8 vendor_id[SAS_EXPANDER_VENDOR_ID_LEN]; 2838 - u8 product_id[SAS_EXPANDER_PRODUCT_ID_LEN]; 2839 - u8 product_rev[SAS_EXPANDER_PRODUCT_REV_LEN]; 2840 - u8 component_vendor_id[SAS_EXPANDER_COMPONENT_VENDOR_ID_LEN]; 2837 + u8 vendor_id[SAS_EXPANDER_VENDOR_ID_LEN] __nonstring; 2838 + u8 product_id[SAS_EXPANDER_PRODUCT_ID_LEN] __nonstring; 2839 + u8 product_rev[SAS_EXPANDER_PRODUCT_REV_LEN] __nonstring; 2840 + u8 component_vendor_id[SAS_EXPANDER_COMPONENT_VENDOR_ID_LEN] __nonstring; 2841 2841 u16 component_id; 2842 2842 u8 component_revision_id; 2843 2843 u8 reserved3;