aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts-by-pid.py
diff options
context:
space:
mode:
authorIan Abbott <[email protected]>2019-04-17 15:35:31 +0100
committerGreg Kroah-Hartman <[email protected]>2019-04-19 14:33:33 +0200
commitf439696c81fcfe70ad46554fbec1c851bab9345a (patch)
tree638ea57d98baad0fa8efd60b8212680cf80104f9 /tools/perf/scripts/python/syscall-counts-by-pid.py
parent2e299cc96952ab5709e809947a6a4ac66f60fdaf (diff)
staging: comedi: don't release mutex too early in comedi_auto_config()
`comedi_auto_config()` uses `dev->class_dev` for logging a kernel message after releasing `dev->mutex`. There is an unlikely possibility that the Comedi device `dev` will have been removed by the `COMEDI_DEVCONFIG` ioctl() command. Keep hold of the mutex until the kernel message has been sent to prevent that. The function can call `comedi_release_hardware_device()` on error. In that case, the mutex must be unlocked before that. Signed-off-by: Ian Abbott <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions