]> git.baikalelectronics.ru Git - kernel.git/commit
V4L/DVB (7708): pvrusb2-dvb: Fix stuck thread on streaming abort
authorMike Isely <isely@pobox.com>
Sun, 30 Mar 2008 23:36:31 +0000 (20:36 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Thu, 24 Apr 2008 17:09:48 +0000 (14:09 -0300)
commit0198444e6b4d6d751be73839aab807afff6c4fd3
tree1565d13b5c6f77fa700e88df3144cbb4a65a51f7
parenta8258e080fe76a0a94e9cd660ad34a12f04e5e34
V4L/DVB (7708): pvrusb2-dvb: Fix stuck thread on streaming abort

If the device fails to stream, the feed thread will block forever
waiting for buffers.  But while in this state it was not looking for
an exit condition from the driver DVB interface.  This caused the
thread to jam.  Implement a new stop flag (which will be set
appropriately) to tell the thread to stop.

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/pvrusb2/pvrusb2-dvb.c
drivers/media/video/pvrusb2/pvrusb2-dvb.h