]> git.baikalelectronics.ru Git - kernel.git/commitdiff
dmaengine: idxd: add missing dsa driver unregister
authorDave Jiang <dave.jiang@intel.com>
Mon, 26 Apr 2021 23:32:24 +0000 (16:32 -0700)
committerVinod Koul <vkoul@kernel.org>
Mon, 10 May 2021 14:18:12 +0000 (19:48 +0530)
The idxd_unregister_driver() has never been called for the idxd driver upon
removal. Add fix to call unregister driver on module removal.

Fixes: f38219f6774e ("dmaengine: idxd: add configuration component of driver")
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/161947994449.1053102.13189942817915448216.stgit@djiang5-desk3.ch.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/idxd/init.c

index ec7305f86bf7420fae989eb5354ba91b50e1c724..6201f52f13f5df6be08384ee47c5b8321dd4054e 100644 (file)
@@ -788,6 +788,7 @@ module_init(idxd_init_module);
 
 static void __exit idxd_exit_module(void)
 {
+       idxd_unregister_driver();
        pci_unregister_driver(&idxd_pci_driver);
        idxd_cdev_remove();
        idxd_unregister_bus_type();