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>
Sun, 27 Nov 2011 02:34:15 +0000 (18:34 -0800)
commit6a9ce6b654e491981f6ef7e214cbd4f63e033848
treeb1b2abec9775fc135d899b08351ac520a1197806
parentdf30b21cb0eed5ba8a8e0cdfeebc66ba8cde821d
Staging: comedi: fix signal handling in read and write

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>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/comedi/comedi_fops.c