Staging: comedi: For COMEDI_BUFINFO, check access to command
authorIan Abbott <abbotti@mev.co.uk>
Wed, 19 May 2010 17:09:50 +0000 (18:09 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 4 Jun 2010 20:38:53 +0000 (13:38 -0700)
commit53fa827e295d8b09a2446b3126577244644d256d
tree38e3ad302db84c0cad2fc714fc494f9d9fecc21f
parent4772c018e35b6a21e8a8bde54568b59998540a16
Staging: comedi: For COMEDI_BUFINFO, check access to command

Don't allow COMEDI_BUFINFO ioctl if some other file object has locked
the subdevice or has an active command.  If there is no active command,
just report back the last buffer position.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/comedi/comedi_fops.c