From f9331cd0e233b97af3e64361fc7256569fce6d13 Mon Sep 17 00:00:00 2001 From: Martin Wilck Date: Apr 03 2023 10:41:47 +0000 Subject: scsi: smartpqi: Initialize feature section info (bsc#1207315). --- diff --git a/patches.suse/scsi-smartpqi-Initialize-feature-section-info.patch b/patches.suse/scsi-smartpqi-Initialize-feature-section-info.patch new file mode 100644 index 0000000..9df4863 --- /dev/null +++ b/patches.suse/scsi-smartpqi-Initialize-feature-section-info.patch @@ -0,0 +1,31 @@ +From: Don Brace +Date: Tue, 8 Nov 2022 13:22:09 -0600 +Subject: scsi: smartpqi: Initialize feature section info +Patch-mainline: v6.2-rc1 +Git-commit: 921800a1deeaa832e4303e9335a31b4234c41ac1 +References: bsc#1207315 + +Initialize features to 0 before processing. + +Reviewed-by: Scott Benesh +Reviewed-by: Mike Mcgowan +Reviewed-by: Kevin Barnett +Signed-off-by: Don Brace +Link: https://lore.kernel.org/r/166793532902.322537.2436075977808555348.stgit@brunhilda +Signed-off-by: Martin K. Petersen +Acked-by: Martin Wilck +--- + drivers/scsi/smartpqi/smartpqi_init.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/drivers/scsi/smartpqi/smartpqi_init.c ++++ b/drivers/scsi/smartpqi/smartpqi_init.c +@@ -8004,7 +8004,7 @@ static int pqi_process_config_table(stru + struct pqi_config_table *config_table; + struct pqi_config_table_section_header *section; + struct pqi_config_table_section_info section_info; +- struct pqi_config_table_section_info feature_section_info; ++ struct pqi_config_table_section_info feature_section_info = {0}; + + table_length = ctrl_info->config_table_length; + if (table_length == 0) diff --git a/series.conf b/series.conf index 35dc316..f275170 100644 --- a/series.conf +++ b/series.conf @@ -36437,6 +36437,7 @@ patches.suse/scsi-smartpqi-Change-sysfs-raid_level-attribute-to-N.patch patches.suse/scsi-smartpqi-Correct-device-removal-for-multi-actua.patch patches.suse/scsi-smartpqi-Add-controller-cache-flush-during-rmmo.patch + patches.suse/scsi-smartpqi-Initialize-feature-section-info.patch patches.suse/scsi-scsi_debug-Fix-a-warning-in-resp_write_scat.patch patches.suse/scsi-lpfc-Use-memset_startat-helper.patch patches.suse/scsi-lpfc-Fix-WQ-CQ-EQ-resource-check.patch