summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts.py
diff options
context:
space:
mode:
authorIan Abbott <abbotti@mev.co.uk>2019-04-17 18:32:49 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-04-19 15:59:37 +0300
commit6e1167444c7dd3491739618c6b0481587ac5bdb1 (patch)
treeab3d879cfe6e320366d6d10656b0bcdaf7ae12d7 /tools/perf/scripts/python/syscall-counts.py
parent3c03c470f476957d318ea49b7eeb9bcf3cb8b1e9 (diff)
downloadlinux-6e1167444c7dd3491739618c6b0481587ac5bdb1.tar.xz
staging: comedi: ni_usb6501: Call mutex_destroy() on private mutex
`ni6501_detach()` is the Comedi "detach" handler for the ni_usb6501 driver. It is called when the private data for the device is about to be freed. The private data contains a mutex `devpriv->mut` that was initialized when the private data was allocated. Call `mutex_destroy()` to mark it as invalid. Also remove the calls to `mutex_lock()` and `mutex_unlock()` from `ni6501_detach()`. The only other locks of the mutex are by some of the Comedi instruction handlers that cannot contend with the "detach" handler for this mutex. Signed-off-by: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions