[PATCH v2] MAX1111: Fix Race condition causing NULL pointer exception

Pavel Herrmann morpheus.ibis at gmail.com
Wed Jun 29 16:11:20 EDT 2011


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 stack. use mutex
> to prevent multiple access
> 
> Signed-off-by: Pavel Herrmann <morpheus.ibis at gmail.com>
> Acked-by: Russell King <rmk+kernel at arm.linux.org.uk>
> Acked-by: Pavel Machek <pavel at ucw.cz>
> Acked-by: Marek Vasut <marek.vasut at gmail.com>
> Acked-by: Cyril Hrubis <metan at ucw.cz>
> 
> ---
>  drivers/hwmon/max1111.c |   12 ++++++++++++
>  1 files changed, 12 insertions(+), 0 deletions(-)
> 




More information about the linux-arm-kernel mailing list