Skip to content

Commit

Permalink
V4L/DVB (7449): cx88: fix oops on module removal caused by IR worker
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Marton Balint authored and Mauro Carvalho Chehab committed Apr 24, 2008
1 parent 99e09ea commit b12203d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/media/video/cx88/cx88-video.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit b12203d

Please sign in to comment.