From: Jonathan Cameron Date: Tue, 2 Mar 2010 13:35:35 +0000 (+0000) Subject: staging: IIO: Fix uses of spinlocks prior to init in ring implementations X-Git-Tag: v2.6.35-rc1~441^2^2~550 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f2dfb3101bb431ae9adc827fa8526d699e9dbd0;p=pandora-kernel.git 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 Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed