linux/drivers/staging
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>
History 2010-05-11 11:35:32 -07:00
..
arlan Staging: merge staging patches into Linus's main branch 2010-03-04 08:39:02 -08:00
asus_oled Staging: asus_oled: asus_oled.c: Checkpatch cleanup 2010-05-11 11:35:30 -07:00
batman-adv Staging: batman-adv: send.c: Checkpatch cleanup 2010-05-11 11:35:31 -07:00
comedi Staging: comedi: fix print(k) coding style issue in aio_aio12_8.c 2010-05-11 11:35:32 -07:00
crystalhd 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
cx25821 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
cxt1e1 staging: Add driver to support wanPMC-CxT1E1 card. 2010-05-11 11:35:31 -07:00
dream 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
dt3155 staging: fix dt3155 build 2010-04-22 07:20:00 -07:00
echo Staging: echo: coding style cleanups 2009-09-15 12:02:16 -07:00
et131x 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
frontier staging: make USB device id constant 2010-03-03 16:42:42 -08:00
go7007 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
hv staging: hv: Corrected all header comment formats kernel-doc format 2010-05-11 11:35:32 -07:00
iio staging: IIO: Fix uses of spinlocks prior to init in ring implementations 2010-05-11 11:35:32 -07:00
line6 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
netwave 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
octeon 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
otus Staging: otus: hpfwu_BA.c: Checkpatch cleanup 2010-05-11 11:35:31 -07:00
panel Staging: Cleanup useless headers 2010-03-03 16:43:05 -08:00
phison Staging: merge staging patches into Linus's main branch 2010-03-04 08:39:02 -08:00
pohmelfs 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
quatech_usb2 staging: make USB device id constant 2010-03-03 16:42:42 -08:00
ramzswap 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
rar_register Staging: rar_register: add suspend and resume functions 2010-03-03 16:42:57 -08:00
rt2860 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
rt2870 Staging: rt2870:: rtusb_bulk.c: Checkpatch cleanup 2010-05-11 11:35:30 -07:00
rt3070 Staging: rt3070: md4.h: Checkpatch cleanup 2010-03-03 16:43:07 -08:00
rtl8187se 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
rtl8192e 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
rtl8192su 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
rtl8192u 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
samsung-laptop backlight: Allow properties to be passed at registration 2010-03-16 19:47:54 +00:00
sep 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
serqt_usb2 Staging: serqt_usb2: Two branches the same in qt_set_termios() 2010-03-03 16:42:48 -08:00
slicoss Staging: merge staging patches into Linus's main branch 2010-03-04 08:39:02 -08:00
sm7xx 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
strip 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
udlfb 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
usbip 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
vme 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
vt6655 Staging: vt6655: 80211hdr.h: Checkpatch cleanup 2010-05-11 11:35:29 -07:00
vt6656 staging: convert to use netdev_for_each_mc_addr 2010-02-18 14:47:51 -08:00
wavelan staging: convert to use netdev_for_each_mc_addr 2010-02-18 14:47:51 -08:00
winbond 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
wlags49_h2 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
wlags49_h25 Staging: wlags49: fix kconfigs dependancy 2009-12-11 12:23:10 -08:00
wlan-ng 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: Remove staging/poch 2010-05-11 11:35:32 -07:00
Makefile Staging: Remove staging/poch 2010-05-11 11:35:32 -07:00
staging.c Staging: workaround build system bug 2008-10-13 14:32:52 -07:00