diff options
author | Don Brace <don.brace@microchip.com> | 2022-11-08 13:22:09 -0600 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2022-11-17 18:10:59 +0000 |
commit | 921800a1deeaa832e4303e9335a31b4234c41ac1 (patch) | |
tree | ba35f2e942a2607db2eb874c0c1fb938dc0004c2 /drivers/scsi/smartpqi | |
parent | 14063fb625c4541f48ff0dc7ae005b0d5a159c3f (diff) | |
download | linux-stable-921800a1deeaa832e4303e9335a31b4234c41ac1.tar.gz linux-stable-921800a1deeaa832e4303e9335a31b4234c41ac1.tar.bz2 linux-stable-921800a1deeaa832e4303e9335a31b4234c41ac1.zip |
scsi: smartpqi: Initialize feature section info
Initialize features to 0 before processing.
Reviewed-by: Scott Benesh <scott.benesh@microchip.com>
Reviewed-by: Mike Mcgowan <mike.mcgowan@microchip.com>
Reviewed-by: Kevin Barnett <kevin.barnett@microchip.com>
Signed-off-by: Don Brace <don.brace@microchip.com>
Link: https://lore.kernel.org/r/166793532902.322537.2436075977808555348.stgit@brunhilda
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/smartpqi')
-rw-r--r-- | drivers/scsi/smartpqi/smartpqi_init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/smartpqi/smartpqi_init.c b/drivers/scsi/smartpqi/smartpqi_init.c index e9c924ac1bb2..fb4a33decde1 100644 --- a/drivers/scsi/smartpqi/smartpqi_init.c +++ b/drivers/scsi/smartpqi/smartpqi_init.c @@ -8004,7 +8004,7 @@ static int pqi_process_config_table(struct pqi_ctrl_info *ctrl_info) 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) |