Staging: comedi: fix signal handling in read and write
authorFederico Vaga <federico.vaga@gmail.com>
Sat, 29 Oct 2011 07:47:39 +0000 (09:47 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 9 Dec 2011 16:52:40 +0000 (08:52 -0800)
commit56448baac0c3d52501dc26868e15caba1811866d
treea63a62fe49fd961a372f053051743057c2abd20d
parent261dbf437bce1d339c358e6566925905e49c13fe
Staging: comedi: fix signal handling in read and write

commit 6a9ce6b654e491981f6ef7e214cbd4f63e033848 upstream.

After sleeping on a wait queue, signal_pending(current) should be
checked (not before sleeping).

Acked-by: Alessandro Rubini <rubini@gnudd.com>
Signed-off-by: Federico Vaga <federico.vaga@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/comedi/comedi_fops.c