]> git.baikalelectronics.ru Git - kernel.git/commit
Staging: comedi: usbdux.c: fix locking up of the driver when the comedi ringbuffer...
authorBernd Porr <berndporr@f2s.com>
Fri, 27 Nov 2009 12:00:53 +0000 (12:00 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 23 Dec 2009 19:27:45 +0000 (11:27 -0800)
commit0340ead7a54374aad9debc0aad0ba54e32e6dd4c
treec5968064db803c106cc9486e00d795ac07c4ec9f
parent115a7509d33c9830b2123152b4fcaf21da5f3714
Staging: comedi: usbdux.c: fix locking up of the driver when the comedi ringbuffer runs empty

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: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/comedi/drivers/usbdux.c