Re: [Zaurus-devel] [PATCH v2] MAX1111: Fix Race condition causing NULL pointer exception

2011-07-11 Thread Jean Delvare
Hi Pavel, On Mon, 11 Jul 2011 20:47:31 +0200, 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 mute

Re: [Zaurus-devel] [PATCH v2] MAX1111: Fix Race condition causing NULL pointer exception

2011-07-11 Thread Stanislav Brabec
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-

Re: [Zaurus-devel] [PATCH v2] MAX1111: Fix Race condition causing NULL pointer exception

2011-07-11 Thread Pavel Herrmann
On Monday 11 of July 2011 22:11:48 Jean Delvare 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

Re: [Zaurus-devel] [PATCH v2] MAX1111: Fix Race condition causing NULL pointer exception

2011-06-29 Thread Pavel Herrmann
anyone picked this yet? On Friday 03 of June 2011 22:00:03 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 st