aboutsummaryrefslogtreecommitdiff
path: root/drivers/crypto
diff options
context:
space:
mode:
authorIan Abbott <abbotti@mev.co.uk>2017-06-16 19:35:34 +0100
committerMoyster <oysterized@gmail.com>2017-11-06 15:19:19 +0100
commit4ae622df9bfeab3bfb29ee29ed59fce7cd86ba3b (patch)
tree8b02d3841babf1b3128be4ebe3266ca7f1f04937 /drivers/crypto
parent1d827d42020ffa3899cb3a03ba8eca96905fdfbb (diff)
staging: comedi: fix clean-up of comedi_class in comedi_init()
commit a9332e9ad09c2644c99058fcf6ae2f355e93ce74 upstream. There is a clean-up bug in the core comedi module initialization functions, `comedi_init()`. If the `comedi_num_legacy_minors` module parameter is non-zero (and valid), it creates that many "legacy" devices and registers them in SysFS. A failure causes the function to clean up and return an error. Unfortunately, it fails to destroy the "comedi" class that was created earlier. Fix it by adding a call to `class_destroy(comedi_class)` at the appropriate place in the clean-up sequence. Signed-off-by: Ian Abbott <abbotti@mev.co.uk> Cc: <stable@vger.kernel.org> # 3.9+ Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Willy Tarreau <w@1wt.eu>
Diffstat (limited to 'drivers/crypto')
0 files changed, 0 insertions, 0 deletions