Pavel Herrmann wrote: > spi_sync call uses its spi_message parameter to keep completion information, > having this structure static is not thread-safe, potentially causing one > thread having pointers to memory on or above other threads stack. use mutex > to prevent multiple access > > Signed-off-by: Pavel Herrmann <morpheus.ibis@xxxxxxxxx> > Acked-by: Russell King <rmk+kernel@xxxxxxxxxxxxxxxx> > Acked-by: Pavel Machek <pavel@xxxxxx> > Acked-by: Marek Vasut <marek.vasut@xxxxxxxxx> > Acked-by: Cyril Hrubis <metan@xxxxxx> Tested-by: Stanislav Brabec <utx@xxxxxxxxxx> Tested on spitz, fixed previously reproducible OOPSes and kernel panic. (See thread "kernel panic in spi_complete() on spitz (PXA270)" in linux-arm-kernel@xxxxxxxxxxxxxxxxxxx.) -- ________________________________________________________________________ Stanislav Brabec http://www.penguin.cz/~utx/zaurus _______________________________________________ lm-sensors mailing list lm-sensors@xxxxxxxxxxxxxx http://lists.lm-sensors.org/mailman/listinfo/lm-sensors