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 <[email protected]> > Acked-by: Russell King <[email protected]> > Acked-by: Pavel Machek <[email protected]> > Acked-by: Marek Vasut <[email protected]> > Acked-by: Cyril Hrubis <[email protected]> Tested-by: Stanislav Brabec <[email protected]>
Tested on spitz, fixed previously reproducible OOPSes and kernel panic. (See thread "kernel panic in spi_complete() on spitz (PXA270)" in [email protected].) -- ________________________________________________________________________ Stanislav Brabec http://www.penguin.cz/~utx/zaurus _______________________________________________ Zaurus-devel mailing list [email protected] http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/zaurus-devel
