]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
V4L/DVB (7449): cx88: fix oops on module removal caused by IR worker
authorMarton Balint <cus@fazekas.hu>
Wed, 26 Mar 2008 05:07:35 +0000 (02:07 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Thu, 24 Apr 2008 17:07:55 +0000 (14:07 -0300)
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>
drivers/media/video/cx88/cx88-video.c

index 327c0a87c08104d8611b7e266f26c1ea94567880..1eea044969a1dc8acf25b81d2087f05aa6418aa7 100644 (file)
@@ -1920,6 +1920,9 @@ static void __devexit cx8800_finidev(struct pci_dev *pci_dev)
                core->kthread = NULL;
        }
 
+       if (core->ir)
+               cx88_ir_stop(core, core->ir);
+
        cx88_shutdown(core); /* FIXME */
        pci_disable_device(pci_dev);