On Tue Apr 28 16:50:08 2026 +0200, Krzysztof Kozlowski wrote:
> Destroy allocated workqueue in remove() callback to free its resources,
> thus fixing memory leak.
>
> Fixes: 519a4bdcf822 ("V4L/DVB (11984): Add support for yet another SDMC
> DM1105 based DVB-S card.")
> Cc: <[email protected]>
> Signed-off-by: Krzysztof Kozlowski <[email protected]>
> Signed-off-by: Hans Verkuil <[email protected]>
Patch committed.
Thanks,
Hans Verkuil
drivers/media/pci/dm1105/dm1105.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/drivers/media/pci/dm1105/dm1105.c
b/drivers/media/pci/dm1105/dm1105.c
index c33d811cbafa..80d2e143384b 100644
--- a/drivers/media/pci/dm1105/dm1105.c
+++ b/drivers/media/pci/dm1105/dm1105.c
@@ -1199,6 +1199,7 @@ static void dm1105_remove(struct pci_dev *pdev)
dm1105_hw_exit(dev);
free_irq(pdev->irq, dev);
+ destroy_workqueue(dev->wq);
pci_iounmap(pdev, dev->io_mem);
pci_release_regions(pdev);
pci_disable_device(pdev);
_______________________________________________
linuxtv-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]