]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
staging: comedi: adv_pci_dio: fix bug in 'detach'
authorH Hartley Sweeten <hartleys@visionengravers.com>
Sat, 18 Aug 2012 01:21:12 +0000 (18:21 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 4 Sep 2012 18:20:41 +0000 (11:20 -0700)
commitf853d9ddf4867a4629753be4af7c5b98f7b7edd0
tree4ebe4692a249729e5f2c32196ff1ccb483f1852a
parentcb448d6572219efa4a6eb0c98f37125079b78549
staging: comedi: adv_pci_dio: fix bug in 'detach'

The 'attach' function can fail between when the devpriv and
the comedi subdevices are allocated. If it does the 'detach'
will try to access unallocated memory when it goes thru the
subdevices.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/adv_pci_dio.c