Skip to content

Commit

Permalink
scsi: mpt3sas: Fix an issue when driver is being removed
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tomas Henzl authored and Martin K. Petersen committed Apr 12, 2023
1 parent 3fc5d6d commit 85140ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/scsi/mpt3sas/mpt3sas_scsih.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit 85140ba

Please sign in to comment.