Pavel Herrmann d3f684f282 hwmon: (max1111) Fix race condition causing NULL pointer exception
spi_sync call uses its spi_message parameter to keep completion information,
using a drvdata structure is not thread-safe. Use a mutex to prevent
multiple access to shared driver data.

Signed-off-by: Pavel Herrmann <morpheus.ibis@gmail.com>
Acked-by: Russell King <rmk+kernel@arm.linux.org.uk>
Acked-by: Pavel Machek <pavel@ucw.cz>
Acked-by: Marek Vasut <marek.vasut@gmail.com>
Acked-by: Cyril Hrubis <metan@ucw.cz>
Tested-by: Stanislav Brabec <utx@penguin.cz>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: stable@kernel.org
2011-07-17 18:39:19 +02:00
..
2011-05-25 20:43:33 +02:00
2011-05-25 20:43:33 +02:00
2009-12-14 21:17:27 +01:00
2011-03-31 11:26:23 -03:00
2009-12-14 21:17:26 +01:00
2010-10-28 20:31:50 +02:00
2010-10-28 20:31:50 +02:00
2011-01-12 21:55:13 +01:00
2009-12-14 21:17:26 +01:00
2011-01-12 21:55:11 +01:00
2009-12-14 21:17:27 +01:00
2009-12-14 21:17:26 +01:00
2010-11-22 12:23:39 -08:00
2011-07-17 18:39:19 +02:00
2011-05-25 20:43:32 +02:00
2011-03-21 17:59:36 +01:00
2009-12-14 21:17:26 +01:00
2011-01-12 21:55:10 +01:00
2009-12-14 21:17:26 +01:00
2009-12-14 21:17:27 +01:00
2009-12-14 21:17:27 +01:00
2009-12-14 21:17:26 +01:00
2011-01-18 12:22:54 -08:00
2011-03-14 22:39:11 -07:00
2009-12-14 21:17:26 +01:00
2009-12-14 21:17:26 +01:00
2009-12-14 21:17:27 +01:00
2011-03-31 11:26:23 -03:00
2010-10-28 20:31:50 +02:00
2009-12-14 21:17:26 +01:00
2009-12-14 21:17:26 +01:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00