diff options
| author | Ian Abbott <[email protected]> | 2019-04-17 16:44:25 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2019-04-19 14:59:37 +0200 |
| commit | 3c03c470f476957d318ea49b7eeb9bcf3cb8b1e9 (patch) | |
| tree | 2ed19afd472ab2e4201cc82dcea12d70925c531b /tools/perf/scripts/python/syscall-counts.py | |
| parent | 35756f3dbf4347b8e4b7dcd781da887cafab4786 (diff) | |
staging: comedi: usbdux: Call mutex_destroy() on private mutex
`usbdux_detach()` is the Comedi "detach" handler for the usbdux driver.
When it is called, the private data for the device is about to be freed.
The private date contains a mutex `devpriv->mut` that was initialized
when the private data was allocated. Call `mutex_destroy()` to mark it
as invalid.
The calls to `mutex_lock()` and `mutex_unlock()` are probably not
required, especially as the mutex is about to be destroyed, but leave
them alone for now.
Signed-off-by: Ian Abbott <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions