From: Marton Balint Date: Wed, 26 Mar 2008 05:07:35 +0000 (-0300) Subject: V4L/DVB (7449): cx88: fix oops on module removal caused by IR worker X-Git-Tag: v2.6.26-rc1~1084^2~239 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=b12203d253732d282dd97909a1424016694183e9;p=~emulex%2Finfiniband.git 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 Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/cx88/cx88-video.c b/drivers/media/video/cx88/cx88-video.c index 327c0a87c08..1eea044969a 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) core->kthread = NULL; } + if (core->ir) + cx88_ir_stop(core, core->ir); + cx88_shutdown(core); /* FIXME */ pci_disable_device(pci_dev);