Staging: comedi: usbdux.c: fix locking up of the driver when the comedi ringbuffer...
commit361096052132966bc6a25b0826d59c2c3babc244
authorBernd Porr <berndporr@f2s.com>
Fri, 27 Nov 2009 12:00:53 +0000 (27 12:00 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 26 Apr 2010 14:41:29 +0000 (26 07:41 -0700)
treed33f2bcfb89bc583d6ec0ec20a03f777c44211dd
parent3410f6e8e3a96baf279946e454ed70a8e43fb448
Staging: comedi: usbdux.c: fix locking up of the driver when the comedi ringbuffer runs empty

commit d4c3a56587af3edbe5f618b20e800e9f9fde13cb upstream.

Jan-Matthias Braun spotted a bug which locks up the driver when the
comedi ring buffer runs empty and provided a patch. The driver would
still send the data to comedi but the reader won't wake up any more.
What's required is setting the flag COMEDI_CB_BLOCK after new data has
arrived which wakes up the reader and therefore the read() command.

Signed-off-by: Bernd Porr <berndporr@f2s.com>
Signed-off-by: Leann Ogasawara <leann.ogasawara@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/comedi/drivers/usbdux.c