linux/drivers/media/video/saa7134
Jeff Mahoney 58e78475ec saa7134: fix thread shutdown handling
This patch changes the test for the thread pid from >= 0 to > 0.

When the saa8134 driver initialization fails after a certain point, it goes
through the complete shutdown process for the driver.  Part of shutting it
down includes tearing down the thread for tv audio.

The test for tearing down the thread tests for >= 0.  Since the dev
structure is kzalloc'd, the test will always be true if we haven't tried to
start the thread yet.  We end up waiting on pid 0 to complete, which will
never happen, so we lock up.

This bug was observed in Novell Bugzilla 284718, when request_irq() failed.

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Acked-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-06-28 11:34:54 -07:00
..
Kconfig V4L/DVB (5317): Create tda827x dvb tuner module 2007-04-27 15:43:35 -03:00
Makefile V4L/DVB (5166): Remove obsolete alias defines of CONFIG_* settings 2007-02-21 13:35:11 -02:00
saa6752hs.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
saa7134-alsa.c V4L/DVB (4872): Saa7134-alsa improvements 2006-12-10 09:05:08 -02:00
saa7134-cards.c V4L/DVB (5582): Added support for Sabrent TV-PCB05 card. 2007-05-09 10:12:37 -03:00
saa7134-core.c V4L/DVB (5443): Saa7134: put tuner to sleep mode after board initialization 2007-04-27 15:44:49 -03:00
saa7134-dvb.c V4L/DVB (5580): Add support for three cards to saa7134 driver 2007-05-09 10:12:36 -03:00
saa7134-empress.c [PATCH] mark struct file_operations const 4 2007-02-12 09:48:45 -08:00
saa7134-i2c.c V4L/DVB (5479): Use ARRAY_SIZE instead of a magic number 2007-04-27 15:45:12 -03:00
saa7134-input.c V4L/DVB (5486): Add support for remote of Asustech P7131 Hybrid LNA 2007-04-27 15:45:19 -03:00
saa7134-oss.c [PATCH] mark struct file_operations const 4 2007-02-12 09:48:45 -08:00
saa7134-reg.h
saa7134-ts.c
saa7134-tvaudio.c saa7134: fix thread shutdown handling 2007-06-28 11:34:54 -07:00
saa7134-vbi.c
saa7134-video.c V4L/DVB (5329): Some saa7134 cleanups 2007-04-27 15:43:43 -03:00
saa7134.h V4L/DVB (5582): Added support for Sabrent TV-PCB05 card. 2007-05-09 10:12:37 -03:00