summaryrefslogtreecommitdiffstats
path: root/drivers/staging/comedi/kcomedilib
diff options
context:
space:
mode:
authorIan Abbott2013-11-08 16:03:37 +0100
committerGreg Kroah-Hartman2013-11-12 01:16:44 +0100
commitbe535c9a058b73600666d5431cfb442f39989a33 (patch)
tree10490f6bdbb2e78f39b7f24d60a596cbdd989bf7 /drivers/staging/comedi/kcomedilib
parentstaging: comedi: use refcount while reading /proc/comedi (diff)
downloadkernel-qcow2-linux-be535c9a058b73600666d5431cfb442f39989a33.tar.gz
kernel-qcow2-linux-be535c9a058b73600666d5431cfb442f39989a33.tar.xz
kernel-qcow2-linux-be535c9a058b73600666d5431cfb442f39989a33.zip
staging: comedi: use refcount in sysfs attribute handlers
Call `comedi_dev_get_from_minor()` instead of `comedi_dev_from_minor()` in the sysfs attribute handler functions to increment the reference of the `struct comedi_device` during the operation. Call `comedi_dev_put()` to decrement the reference afterwards. Signed-off-by: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/comedi/kcomedilib')
0 files changed, 0 insertions, 0 deletions