aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorIan Abbott <[email protected]>2013-11-08 15:03:34 +0000
committerGreg Kroah-Hartman <[email protected]>2013-11-11 16:16:44 -0800
commitfc406986d4115dfbd5e2ea8a0e96920e97162689 (patch)
treed1a8bcc1be7dcf5bc32140d2a01d8c863c492525 /tools/perf/scripts/python
parentb449c1cad7e3acf80834d4bdb1b6241d5d8dd249 (diff)
staging: comedi: increment reference while file open
In the 'open' file operation handler `comedi_open()` in "comedi_fops.c", call `comedi_dev_get_from_minor()` instead of `comedi_dev_from_minor()` to get the pointer to the `struct comedi_device`. This increments the reference to prevent it being freed. Call `comedi_dev_put()` to decrement the reference on failure, and also call it from the 'release' file operation handler `comedi_close()`. Signed-off-by: Ian Abbott <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions