Skip to content

Commit

Permalink
dmaengine: idxd: add missing dsa driver unregister
Browse files Browse the repository at this point in the history
[ Upstream commit 077cdb3 ]

The idxd_unregister_driver() has never been called for the idxd driver upon
removal. Add fix to call unregister driver on module removal.

Fixes: c52ca47 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
davejiang authored and gregkh committed Jun 23, 2021
1 parent c1ec6d4 commit 6b82f69
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/dma/idxd/init.c
Expand Up @@ -719,6 +719,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();
Expand Down

0 comments on commit 6b82f69

Please sign in to comment.