]> git.dujemihanovic.xyz Git - linux.git/commitdiff
dmaengine: ioatdma: Fix missing kmem_cache_destroy()
authorNikita Shubin <n.shubin@yadro.com>
Tue, 14 May 2024 10:52:31 +0000 (13:52 +0300)
committerVinod Koul <vkoul@kernel.org>
Tue, 11 Jun 2024 18:09:26 +0000 (23:39 +0530)
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: c0f28ce66ecf ("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>
drivers/dma/ioat/init.c

index cf688b0c8444cb62f42088a99d4425b7f5fe68fc..e8f45a7fded4354cd77a447b4fb8300c637fb4d6 100644 (file)
@@ -1449,6 +1449,7 @@ module_init(ioat_init_module);
 static void __exit ioat_exit_module(void)
 {
        pci_unregister_driver(&ioat_pci_driver);
+       kmem_cache_destroy(ioat_sed_cache);
        kmem_cache_destroy(ioat_cache);
 }
 module_exit(ioat_exit_module);