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 <>
> Acked-by: Russell King <>
> Acked-by: Pavel Machek <>
> Acked-by: Marek Vasut <>
> Acked-by: Cyril Hrubis <>
Tested-by: Stanislav Brabec <>

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

(See thread "kernel panic in spi_complete() on spitz (PXA270)" in


Stanislav Brabec

Zaurus-devel mailing list

Reply via email to