[stable] [PATCH v2] MAX1111: Fix Race condition causing NULL pointer exception
Greg KH
greg at kroah.com
Fri Jun 3 18:32:03 EDT 2011
On Fri, Jun 03, 2011 at 10:00:03PM +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 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(-)
>
<formletter>
This is not the correct way to submit patches for inclusion in the
stable kernel tree. Please read Documentation/stable_kernel_rules.txt
for how to do this properly.
</formletter>
More information about the linux-arm-kernel
mailing list