diff options
| author | 2013-04-04 14:58:45 +0100 | |
|---|---|---|
| committer | 2013-04-05 14:33:16 -0700 | |
| commit | a649a6754d246d5b5447f74b86ed4b947e5f5446 (patch) | |
| tree | 97ebe4002b891f9aaf1c6535f6153f7b0f644aa9 /scripts/Makefile.thinlto | |
| parent | staging: comedi: remove memset() call from comedi_device_init() (diff) | |
staging: comedi: adjust module count on device cleanup
`comedi_device_cleanup()` is called just before freeing a comedi device.
It is possible for the device to still be open in which case the module
reference counts for the core comedi module and possibly the low-level
driver module will remain out of whack because `comedi_close()` will not
find the comedi device and so will not decrement the module counts.
This really needs to be handled better, but for now decrement the module
counts in `comedi_device_cleanup()` according to the number of
outstanding opens.
Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Reviewed-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
