linux/drivers/staging/comedi
Ian Abbott 3955dfa821 staging: comedi: bug-fix NULL pointer dereference on failed attach
Commit dcd7b8bd63 ("staging: comedi: put
module _after_ detach" by myself) reversed a couple of calls in
`comedi_device_attach()` when recovering from an error returned by the
low-level driver's 'attach' handler.  Unfortunately, that introduced a
NULL pointer dereference bug as `dev->driver` is NULL after the call to
`comedi_device_detach()`.   We still have a pointer to the low-level
comedi driver structure in the `driv` variable, so use that instead.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Cc: <stable@vger.kernel.org> # 3.10+
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-08-23 10:31:47 -07:00
..
drivers staging: comedi: unioxx5: use comedi_alloc_spriv() 2013-06-24 16:43:40 -07:00
kcomedilib staging: comedi: remove FSF address from boilerplate text 2013-05-13 17:34:22 -04:00
comedi_buf.c Merge 3.10-rc3 into staging-next 2013-05-27 10:54:33 +09:00
comedi_compat32.c staging: comedi: remove FSF address from boilerplate text 2013-05-13 17:34:22 -04:00
comedi_compat32.h staging: comedi: remove FSF address from boilerplate text 2013-05-13 17:34:22 -04:00
comedi_fops.c staging: comedi: fix a race between do_cmd_ioctl() and read/write 2013-07-23 14:30:54 -07:00
comedi_internal.h staging: comedi: change comedi_alloc_board_minor() to return pointer 2013-04-05 14:33:17 -07:00
comedi_pci.c staging: comedi: remove FSF address from boilerplate text 2013-05-13 17:34:22 -04:00
comedi_pcmcia.c staging: comedi: remove FSF address from boilerplate text 2013-05-13 17:34:22 -04:00
comedi_usb.c staging: comedi: introduce comedi_to_usb_dev() 2013-05-21 10:59:10 -07:00
comedi.h staging: comedi: remove FSF address from boilerplate text 2013-05-13 17:34:22 -04:00
comedidev.h staging: comedi: have comedi_set_spriv() allocate the memory 2013-06-24 15:46:56 -07:00
comedilib.h staging: comedi: remove FSF address from boilerplate text 2013-05-13 17:34:22 -04:00
drivers.c staging: comedi: bug-fix NULL pointer dereference on failed attach 2013-08-23 10:31:47 -07:00
Kconfig staging: comedi: pcl730: add support for the P8R8-DIO ISA board 2013-06-08 21:57:01 -07:00
Makefile staging: comedi: conditionally build in PCMCIA driver support 2013-01-31 10:38:10 +01:00
proc.c staging: comedi: remove FSF address from boilerplate text 2013-05-13 17:34:22 -04:00
range.c staging: comedi: remove FSF address from boilerplate text 2013-05-13 17:34:22 -04:00
TODO MAINTAINERS: Update the list of maintainers for staging/comedi driver. 2013-07-24 09:51:18 -07:00