staging: comedi: fix oops for USB DAQ devices.
authorBernd Porr <berndporr@f2s.com>
Tue, 8 Nov 2011 21:23:03 +0000 (21:23 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 9 Dec 2011 16:54:39 +0000 (08:54 -0800)
commit7994d8747d9ac088be8a2136dc25ea30135ca1e8
treef9d66429f9884bf5de3d6f3dc9a8c109d615fa33
parentdf781a42499bdf5a1a4375c55ffed1a80cbdf5b3
staging: comedi: fix oops for USB DAQ devices.

commit 3ffab428f40849ed5f21bcfd7285bdef7902f9ca upstream.

This fixes kernel oops when an USB DAQ device is plugged out while it's
communicating with the userspace software.

Signed-off-by: Bernd Porr <berndporr@f2s.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/comedi/comedi_fops.c