Message ID | 20230403184736.6399-1-thenzl@redhat.com (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
Series | scsi: mpt3sas: fix an issue when driver's being removed | expand |
Tomas, > Warnings may be logged during driver removal: > mpt3sas 0000:01:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT .., > Fix it by deallocating dma memory later. Applied to 6.4/scsi-staging, thanks!
On Mon, 03 Apr 2023 20:47:36 +0200, Tomas Henzl wrote: > Warnings may be logged during driver removal: > mpt3sas 0000:01:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT .., > Fix it by deallocating dma memory later. > > Applied to 6.4/scsi-queue, thanks! [1/1] scsi: mpt3sas: fix an issue when driver's being removed https://git.kernel.org/mkp/scsi/c/85140baf096b
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(); }
Warnings may be logged during driver removal: mpt3sas 0000:01:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT .., Fix it by deallocating dma memory later. Signed-off-by: Tomas Henzl <thenzl@redhat.com> --- drivers/scsi/mpt3sas/mpt3sas_scsih.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)