commit | be535c9a058b73600666d5431cfb442f39989a33 | [log] [tgz] |
---|---|---|
author | Ian Abbott <abbotti@mev.co.uk> | Fri Nov 08 15:03:37 2013 +0000 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Mon Nov 11 16:16:44 2013 -0800 |
tree | 10490f6bdbb2e78f39b7f24d60a596cbdd989bf7 | |
parent | 616a3548e816553c31d57cc211a86d327a192e12 [diff] |
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>