diff options
author | Tomas Henzl <thenzl@redhat.com> | 2023-04-03 20:47:36 +0200 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2023-04-12 03:00:37 +0200 |
commit | 85140baf096bdca07cd5ab2fdc507db9cd4ba4e7 (patch) | |
tree | ccb2f48d3386d5f06873d742e1aab9ddffa69289 /drivers/scsi/mpt3sas | |
parent | scsi: mpt3sas: Remove HBA BIOS version in the kernel log (diff) | |
download | linux-85140baf096bdca07cd5ab2fdc507db9cd4ba4e7.tar.xz linux-85140baf096bdca07cd5ab2fdc507db9cd4ba4e7.zip |
scsi: mpt3sas: Fix an issue when driver is being removed
Warnings may be logged during driver removal:
mpt3sas 0000:01:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT ..,
Fix this by deallocating DMA memory later.
Signed-off-by: Tomas Henzl <thenzl@redhat.com>
Link: https://lore.kernel.org/r/20230403184736.6399-1-thenzl@redhat.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/mpt3sas')
-rw-r--r-- | drivers/scsi/mpt3sas/mpt3sas_scsih.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/mpt3sas/mpt3sas_scsih.c b/drivers/scsi/mpt3sas/mpt3sas_scsih.c index 492d1940d596..c3c1f466fe01 100644 --- a/drivers/scsi/mpt3sas/mpt3sas_scsih.c +++ b/drivers/scsi/mpt3sas/mpt3sas_scsih.c @@ -12929,10 +12929,10 @@ _mpt3sas_exit(void) pr_info("mpt3sas version %s unloading\n", MPT3SAS_DRIVER_VERSION); - mpt3sas_ctl_exit(hbas_to_enumerate); - pci_unregister_driver(&mpt3sas_driver); + mpt3sas_ctl_exit(hbas_to_enumerate); + scsih_exit(); } |