summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/twl4030-madc-hwmon.c
diff options
context:
space:
mode:
authorPavel Herrmann <morpheus.ibis@gmail.com>2011-07-17 18:39:19 +0200
committerJean Delvare <khali@endymion.delvare>2011-07-17 18:39:19 +0200
commitd3f684f2820a7f42acef68bea6622d9032127fb2 (patch)
tree0ca1227b9c1499093e7af42d01ad75f41481b5e1 /drivers/hwmon/twl4030-madc-hwmon.c
parenthwmon: (it87) Fix label group removal (diff)
downloadlinux-d3f684f2820a7f42acef68bea6622d9032127fb2.tar.xz
linux-d3f684f2820a7f42acef68bea6622d9032127fb2.zip
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
Diffstat (limited to 'drivers/hwmon/twl4030-madc-hwmon.c')
0 files changed, 0 insertions, 0 deletions