summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorBhaktipriya Shridhar <bhaktipriya96@gmail.com>2016-07-25 11:55:22 -0300
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2016-09-22 12:49:10 -0300
commit534e1f3c4f35e198f1ffca2a2372ebe811b6d9f1 (patch)
treef9824deaa715155b8c34aee30ba61144ef1bf3df /drivers
parentaf4cc4629f2fc17cfeaafebb703acbbcff2c8b21 (diff)
downloadlinux-stable-534e1f3c4f35e198f1ffca2a2372ebe811b6d9f1.tar.gz
linux-stable-534e1f3c4f35e198f1ffca2a2372ebe811b6d9f1.tar.bz2
linux-stable-534e1f3c4f35e198f1ffca2a2372ebe811b6d9f1.zip
[media] cx25821: Drop Freeing of Workqueue
Workqueues shouldn't be freed. destroy_workqueue should be used instead. destroy_workqueue safely destroys a workqueue and ensures that all pending work items are done before destroying the workqueue. Signed-off-by: Bhaktipriya Shridhar <bhaktipriya96@gmail.com> Acked-by: Tejun Heo <tj@kernel.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/pci/cx25821/cx25821-audio-upstream.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/pci/cx25821/cx25821-audio-upstream.c b/drivers/media/pci/cx25821/cx25821-audio-upstream.c
index 68dbc2dbc982..05bd957a59d0 100644
--- a/drivers/media/pci/cx25821/cx25821-audio-upstream.c
+++ b/drivers/media/pci/cx25821/cx25821-audio-upstream.c
@@ -242,7 +242,7 @@ void cx25821_stop_upstream_audio(struct cx25821_dev *dev)
dev->_audioframe_count = 0;
dev->_audiofile_status = END_OF_FILE;
- kfree(dev->_irq_audio_queues);
+ destroy_workqueue(dev->_irq_audio_queues);
dev->_irq_audio_queues = NULL;
kfree(dev->_audiofilename);