f9331c
From: Don Brace <don.brace@microchip.com>
f9331c
Date: Tue, 8 Nov 2022 13:22:09 -0600
f9331c
Subject: scsi: smartpqi: Initialize feature section info
f9331c
Patch-mainline: v6.2-rc1
f9331c
Git-commit: 921800a1deeaa832e4303e9335a31b4234c41ac1
f9331c
References: bsc#1207315
f9331c
f9331c
Initialize features to 0 before processing.
f9331c
f9331c
Reviewed-by: Scott Benesh <scott.benesh@microchip.com>
f9331c
Reviewed-by: Mike Mcgowan <mike.mcgowan@microchip.com>
f9331c
Reviewed-by: Kevin Barnett <kevin.barnett@microchip.com>
f9331c
Signed-off-by: Don Brace <don.brace@microchip.com>
f9331c
Link: https://lore.kernel.org/r/166793532902.322537.2436075977808555348.stgit@brunhilda
f9331c
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
f9331c
Acked-by: Martin Wilck <mwilck@suse.com>
f9331c
---
f9331c
 drivers/scsi/smartpqi/smartpqi_init.c |    2 +-
f9331c
 1 file changed, 1 insertion(+), 1 deletion(-)
f9331c
f9331c
--- a/drivers/scsi/smartpqi/smartpqi_init.c
f9331c
+++ b/drivers/scsi/smartpqi/smartpqi_init.c
f9331c
@@ -8004,7 +8004,7 @@ static int pqi_process_config_table(stru
f9331c
 	struct pqi_config_table *config_table;
f9331c
 	struct pqi_config_table_section_header *section;
f9331c
 	struct pqi_config_table_section_info section_info;
f9331c
-	struct pqi_config_table_section_info feature_section_info;
f9331c
+	struct pqi_config_table_section_info feature_section_info = {0};
f9331c
 
f9331c
 	table_length = ctrl_info->config_table_length;
f9331c
 	if (table_length == 0)