diff mbox series

scsi: mpt3sas: fix an issue when driver's being removed

Message ID 20230403184736.6399-1-thenzl@redhat.com
State New
Headers show
Series scsi: mpt3sas: fix an issue when driver's being removed | expand

Commit Message

Tomas Henzl April 3, 2023, 6:47 p.m. UTC
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(-)

Comments

Martin K. Petersen April 12, 2023, 1 a.m. UTC | #1
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!
Martin K. Petersen April 19, 2023, 3:20 a.m. UTC | #2
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 mbox series

Patch

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();
 }