diff options
| author | Ian Abbott <abbotti@mev.co.uk> | 2019-04-17 16:55:12 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-04-19 14:59:36 +0200 |
| commit | 2cd0869672426171541330ecd7a39761a40b06a6 (patch) | |
| tree | d97e445034d7806ad00d185fd33fba377a692a3d /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | staging: most: configfs: Make mdev_link_list static (diff) | |
| download | linux-2cd0869672426171541330ecd7a39761a40b06a6.tar.gz linux-2cd0869672426171541330ecd7a39761a40b06a6.zip | |
staging: comedi: usbduxsigma: Call mutex_destroy() on private mutex
`usbduxsigma_detach()` is the Comedi "detach" handler for the
usbduxsigma 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
`usbduxsigma_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/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions
