linux/drivers/staging/iio
Jonathan Cameron 6f2dfb3101 staging: IIO: Fix uses of spinlocks prior to init in ring implementations
Some confusion was caused by the ___iio_init_ring_buffer and equivalent
in ring_sw handling both init of spin locks etc and allocation and
of the actual buffer.  This resulted in ring->use_lock being held
before it was initialized and actually during the initialization.

Some of the recent cleanups in the spin lock code seem to have triggered
the bug actually causing traceable crashes.

The following patch should fix this but hasn't been extensively tested
as of yet and there may well be some side effects I haven't thought of.
Just wanted to get this out there before anyone else runs into it!

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-05-11 11:35:32 -07:00
..
Documentation Staging: iio: Fix typos in documentation 2009-12-11 12:23:19 -08:00
accel include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
adc include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
light include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
trigger include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
Kconfig Staging: iio: kconfig and make edits 2009-12-11 12:23:05 -08:00
Makefile Staging: IIO: Periodic timer based trigger 2009-09-15 12:02:25 -07:00
TODO Staging: IIO: Add todo list for staging 2009-09-15 12:02:26 -07:00
chrdev.h Staging: iio: lots of doc fixes 2009-12-11 12:23:05 -08:00
iio.h Staging: iio: lots of doc fixes 2009-12-11 12:23:05 -08:00
industrialio-core.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
industrialio-ring.c staging: IIO: Fix uses of spinlocks prior to init in ring implementations 2010-05-11 11:35:32 -07:00
industrialio-trigger.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
ring_generic.h staging: IIO: Fix uses of spinlocks prior to init in ring implementations 2010-05-11 11:35:32 -07:00
ring_hw.h Staging: IIO: VTI sca3000 series accelerometer driver (spi) 2009-09-15 12:02:24 -07:00
ring_sw.c staging: IIO: Fix uses of spinlocks prior to init in ring implementations 2010-05-11 11:35:32 -07:00
ring_sw.h drop explicit include of autoconf.h 2009-12-12 13:08:15 +01:00
sysfs.h Staging: iio: lots of doc fixes 2009-12-11 12:23:05 -08:00
trigger.h Staging: iio: lots of doc fixes 2009-12-11 12:23:05 -08:00
trigger_consumer.h Staging: iio: Staticise non-exported functions 2010-03-03 16:43:02 -08:00