]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
media: pci: dm1105: Free allocated workqueue
authorKrzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Tue, 28 Apr 2026 14:50:08 +0000 (16:50 +0200)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Tue, 5 May 2026 14:57:03 +0000 (16:57 +0200)
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: <stable@vger.kernel.org>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/pci/dm1105/dm1105.c

index c33d811cbafa4bde25b705f82a08865d37b282d0..80d2e143384b43897ab2a2559c7ac9bb2ad0f00f 100644 (file)
@@ -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);