Skip to content

Commit 5422145

Browse files
maquefelvinodkoul
authored andcommitted
dmaengine: ioatdma: Fix missing kmem_cache_destroy()
Fix missing kmem_cache_destroy() for ioat_sed_cache in ioat_exit_module(). Noticed via: ``` modprobe ioatdma rmmod ioatdma modprobe ioatdma debugfs: Directory 'ioat_sed_ent' with parent 'slab' already present! ``` Fixes: c0f28ce ("dmaengine: ioatdma: move all the init routines") Signed-off-by: Nikita Shubin <n.shubin@yadro.com> Acked-by: Dave Jiang <dave.jiang@intel.com> Link: https://lore.kernel.org/r/20240514-ioatdma_fixes-v1-1-2776a0913254@yadro.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
1 parent 1345a13 commit 5422145

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/dma/ioat/init.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1449,6 +1449,7 @@ module_init(ioat_init_module);
14491449
static void __exit ioat_exit_module(void)
14501450
{
14511451
pci_unregister_driver(&ioat_pci_driver);
1452+
kmem_cache_destroy(ioat_sed_cache);
14521453
kmem_cache_destroy(ioat_cache);
14531454
}
14541455
module_exit(ioat_exit_module);

0 commit comments

Comments
 (0)