Skip to content

Commit af61e27

Browse files
Tyler StacheckiJames Bottomley
authored andcommitted
[SCSI] mpt2sas: Don't disable device twice at suspend.
On suspend, _scsih_suspend calls mpt2sas_base_free_resources, which in turn calls pci_disable_device if the device is enabled prior to suspending. However, _scsih_suspend also calls pci_disable_device itself. Thus, in the event that the device is enabled prior to suspending, pci_disable_device will be called twice. This patch removes the duplicate call to pci_disable_device in _scsi_suspend as it is both unnecessary and results in a kernel oops. Signed-off-by: Tyler Stachecki <tstache1@binghamton.edu> Cc: stable@vger.kernel.org Signed-off-by: James Bottomley <JBottomley@Parallels.com>
1 parent d1db0ee commit af61e27

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/scsi/mpt2sas/mpt2sas_scsih.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8293,7 +8293,6 @@ _scsih_suspend(struct pci_dev *pdev, pm_message_t state)
82938293

82948294
mpt2sas_base_free_resources(ioc);
82958295
pci_save_state(pdev);
8296-
pci_disable_device(pdev);
82978296
pci_set_power_state(pdev, device_state);
82988297
return 0;
82998298
}

0 commit comments

Comments
 (0)