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.i...@gmail.com>
> Acked-by: Russell King <rmk+ker...@arm.linux.org.uk>
> Acked-by: Pavel Machek <pa...@ucw.cz>
> Acked-by: Marek Vasut <marek.va...@gmail.com>
> Acked-by: Cyril Hrubis <me...@ucw.cz>
Tested-by: Stanislav Brabec <u...@penguin.cz>

Tested on spitz, fixed previously reproducible OOPSes and kernel panic.

(See thread "kernel panic in spi_complete() on spitz (PXA270)" in
linux-arm-ker...@lists.infradead.org.)

-- 

________________________________________________________________________
Stanislav Brabec
http://www.penguin.cz/~utx/zaurus


_______________________________________________
Zaurus-devel mailing list
Zaurus-devel@lists.linuxtogo.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/zaurus-devel

Reply via email to