aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/failed-syscalls-by-pid.py
diff options
context:
space:
mode:
authorIan Abbott <[email protected]>2019-04-17 16:16:11 +0100
committerGreg Kroah-Hartman <[email protected]>2019-04-19 14:59:37 +0200
commit7c2c18202ce0c0f8f05a4d72999899fdc3fe9de3 (patch)
treeee511c13c8d793f11bb601fd103c0125bbbe06ef /tools/perf/scripts/python/failed-syscalls-by-pid.py
parent6e1167444c7dd3491739618c6b0481587ac5bdb1 (diff)
staging: comedi: dt9812: Call mutex_destroy() on private mutex
`dt9812_detach()` is the Comedi "detach" handler for the dt9812 driver. When it is called, 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 `dt9812_detach()` as the mutex is only being used around a call to `usb_set_intfdata()` to clear the USB interface's driver data pointer. The mutex lock seems redundant here, especially as it is about to be destroyed. Signed-off-by: Ian Abbott <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/failed-syscalls-by-pid.py')
0 files changed, 0 insertions, 0 deletions