diff options
| author | Ian Abbott <abbotti@mev.co.uk> | 2019-04-17 16:50:09 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-04-19 14:59:36 +0200 |
| commit | 35756f3dbf4347b8e4b7dcd781da887cafab4786 (patch) | |
| tree | 0ec1984197dc79429a0d70a1954f66d46d74fdcb /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | staging: comedi: usbduxsigma: Call mutex_destroy() on private mutex (diff) | |
| download | linux-35756f3dbf4347b8e4b7dcd781da887cafab4786.tar.gz linux-35756f3dbf4347b8e4b7dcd781da887cafab4786.zip | |
staging: comedi: usbduxfast: Call mutex_destroy() on private mutex
`usbduxfast_detach()` is the Comedi "detach" handler for the usbduxfast
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()` in
`usbduxfast_detach()` are probably not required, especially as the mutex
is about to be destroyed, but leave them alone for now.
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/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions
