From: Pavel Herrmann Date: Sun, 17 Jul 2011 16:39:19 +0000 (+0200) Subject: hwmon: (max1111) Fix race condition causing NULL pointer exception X-Git-Tag: v3.0~19^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d3f684f2820a7f42acef68bea6622d9032127fb2;p=pandora-kernel.git 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 Acked-by: Russell King Acked-by: Pavel Machek Acked-by: Marek Vasut Acked-by: Cyril Hrubis Tested-by: Stanislav Brabec Signed-off-by: Jean Delvare Cc: stable@kernel.org --- Reading git-diff-tree failed