Commit:     58e78475ec706f93e0cc049449ffd11fbfdadb3e
Parent:     53f3bed0a46c786b17f040005b1bd7a78ddd0770
Author:     Jeff Mahoney <[EMAIL PROTECTED]>
AuthorDate: Wed Jun 27 14:09:58 2007 -0700
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Thu Jun 28 11:34:54 2007 -0700

    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 <[EMAIL PROTECTED]>
    Acked-by: Mauro Carvalho Chehab <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
 drivers/media/video/saa7134/saa7134-tvaudio.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/media/video/saa7134/saa7134-tvaudio.c 
index 7b56041..30395d6 100644
--- a/drivers/media/video/saa7134/saa7134-tvaudio.c
+++ b/drivers/media/video/saa7134/saa7134-tvaudio.c
@@ -1005,7 +1005,7 @@ int saa7134_tvaudio_init2(struct saa7134_dev *dev)
 int saa7134_tvaudio_fini(struct saa7134_dev *dev)
        /* shutdown tvaudio thread */
-       if (dev-> >= 0) {
+       if (dev-> > 0) {
                dev->thread.shutdown = 1;
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to