summaryrefslogtreecommitdiffstats
path: root/fs/signalfd.c
diff options
context:
space:
mode:
authorJeff Mahoney2007-06-27 23:09:58 +0200
committerLinus Torvalds2007-06-28 20:34:54 +0200
commit58e78475ec706f93e0cc049449ffd11fbfdadb3e (patch)
treeccafbe9237cb4918c2b725cc64192f3b3b7b57ee /fs/signalfd.c
parentALSA: fix ice1712 section mismatch (diff)
downloadkernel-qcow2-linux-58e78475ec706f93e0cc049449ffd11fbfdadb3e.tar.gz
kernel-qcow2-linux-58e78475ec706f93e0cc049449ffd11fbfdadb3e.tar.xz
kernel-qcow2-linux-58e78475ec706f93e0cc049449ffd11fbfdadb3e.zip
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>
Diffstat (limited to 'fs/signalfd.c')
0 files changed, 0 insertions, 0 deletions