scsi: hpsa: clear tmpdevice in scan thread
clean up stale information. Reviewed-by: Scott Benesh <scott.benesh@microsemi.com> Reviewed-by: Scott Teel <scott.teel@microsemi.com> Reviewed-by: Kevin Barnett <kevin.barnett@microsemi.com> Signed-off-by: Don Brace <don.brace@microsemi.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
55ca38b425
commit
421bf80cc2
@ -4258,6 +4258,8 @@ static void hpsa_update_scsi_devices(struct ctlr_info *h)
|
||||
int phys_dev_index = i - (raid_ctlr_position == 0);
|
||||
bool skip_device = false;
|
||||
|
||||
memset(tmpdevice, 0, sizeof(*tmpdevice));
|
||||
|
||||
physical_device = i < nphysicals + (raid_ctlr_position == 0);
|
||||
|
||||
/* Figure out where the LUN ID info is coming from */
|
||||
|
Loading…
Reference in New Issue
Block a user