mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 17:47:41 +02:00
media: pci: dm1105: Free allocated workqueue
Destroy allocated workqueue in remove() callback to free its resources,
thus fixing memory leak.
Fixes: 519a4bdcf8 ("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>
This commit is contained in:
parent
e0f1c9a90e
commit
1a65db225b
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user