linux/drivers/staging/comedi
Ian Abbott 616a3548e8 staging: comedi: use refcount while reading /proc/comedi
In the seq_file 'show' handler for "/proc/comedi" - `comedi_read()` in
"comedi/proc.c",  call `comedi_dev_get_from_minor()` instead of
`comedi_dev_from_minor()` to increment the reference counter for the
`struct comedi_device` while it is being examined.  Call
`comedi_dev_put()` to decrement the reference afterwards.  Also acquire
the `attach_lock` rwsem while checking whether the device is attached.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-11-11 16:16:44 -08:00
..
drivers staging: comedi: change bool assignment to true 2013-11-10 12:14:54 -08:00
kcomedilib staging: comedi: comedi_bond: handle base channel for insn_bits 2013-08-26 06:41:56 -07:00
comedi_buf.c staging: comedi: use unsigned samples for comedi_buf_put()/get() 2013-10-16 12:48:16 -07:00
comedi_compat32.c
comedi_compat32.h
comedi_fops.c staging: comedi: increment reference while file open 2013-11-11 16:16:44 -08:00
comedi_internal.h staging: comedi: cancel commands before detaching device 2013-11-11 16:16:44 -08:00
comedi_pci.c
comedi_pcmcia.c
comedi_usb.c
comedi.h
comedidev.h staging: comedi: add comedi_dev_get_from_minor() 2013-11-11 16:16:44 -08:00
comedilib.h staging: comedi: comedi_bond: handle base channel for insn_bits 2013-08-26 06:41:56 -07:00
drivers.c staging: comedi: use refcount in comedi_driver_unregister() 2013-11-11 16:16:44 -08:00
Kconfig staging: comedi: ni_6527: remove COMEDI_MITE dependancy 2013-10-03 14:10:03 -07:00
Makefile
proc.c staging: comedi: use refcount while reading /proc/comedi 2013-11-11 16:16:44 -08:00
range.c staging: comedi: range: tidy up comedi_check_chanlist() 2013-07-25 13:20:17 -07:00
TODO MAINTAINERS: Update the list of maintainers for staging/comedi driver. 2013-07-24 09:51:18 -07:00