From: Ian Abbott Date: Fri, 8 Nov 2013 15:03:37 +0000 (+0000) Subject: staging: comedi: use refcount in sysfs attribute handlers X-Git-Tag: v3.14-rc1~150^2~775^2~88 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=be535c9a058b73600666d5431cfb442f39989a33;p=pandora-kernel.git 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 Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed