aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMarton Balint <cus@fazekas.hu>2008-03-26 01:07:35 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-04-24 13:07:55 -0400
commitb12203d253732d282dd97909a1424016694183e9 (patch)
treec898f7f2582b7b2be9a216392e544e4f055d4964 /drivers
parent99e09eac25f752b25f65392da7bd747b77040fea (diff)
V4L/DVB (7449): cx88: fix oops on module removal caused by IR worker
If the IR worker is not stopped before the removal of the cx88xx module, an OOPS may occur, because the worker function cx88_ir_work gets called. So stop the ir worker. Signed-off-by: Marton Balint <cus@fazekas.hu> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/video/cx88/cx88-video.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/media/video/cx88/cx88-video.c b/drivers/media/video/cx88/cx88-video.c
index 327c0a87c081..1eea044969a1 100644
--- a/drivers/media/video/cx88/cx88-video.c
+++ b/drivers/media/video/cx88/cx88-video.c
@@ -1920,6 +1920,9 @@ static void __devexit cx8800_finidev(struct pci_dev *pci_dev)
1920 core->kthread = NULL; 1920 core->kthread = NULL;
1921 } 1921 }
1922 1922
1923 if (core->ir)
1924 cx88_ir_stop(core, core->ir);
1925
1923 cx88_shutdown(core); /* FIXME */ 1926 cx88_shutdown(core); /* FIXME */
1924 pci_disable_device(pci_dev); 1927 pci_disable_device(pci_dev);
1925 1928