diff options
-rw-r--r-- | drivers/scsi/qla2xxx/qla_os.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c index a1aef661108b..46720b23028f 100644 --- a/drivers/scsi/qla2xxx/qla_os.c +++ b/drivers/scsi/qla2xxx/qla_os.c | |||
@@ -3362,6 +3362,11 @@ qla2xxx_pci_slot_reset(struct pci_dev *pdev) | |||
3362 | 3362 | ||
3363 | pci_restore_state(pdev); | 3363 | pci_restore_state(pdev); |
3364 | 3364 | ||
3365 | /* pci_restore_state() clears the saved_state flag of the device | ||
3366 | * save restored state which resets saved_state flag | ||
3367 | */ | ||
3368 | pci_save_state(pdev); | ||
3369 | |||
3365 | if (ha->mem_only) | 3370 | if (ha->mem_only) |
3366 | rc = pci_enable_device_mem(pdev); | 3371 | rc = pci_enable_device_mem(pdev); |
3367 | else | 3372 | else |