Skip to content
Commit d3f684f2 authored by Pavel Herrmann's avatar Pavel Herrmann Committed by Jean Delvare
Browse files

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: default avatarPavel Herrmann <morpheus.ibis@gmail.com>
Acked-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
Acked-by: default avatarPavel Machek <pavel@ucw.cz>
Acked-by: default avatarMarek Vasut <marek.vasut@gmail.com>
Acked-by: default avatarCyril Hrubis <metan@ucw.cz>
Tested-by: default avatarStanislav Brabec <utx@penguin.cz>
Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
Cc: stable@kernel.org
parent fa8b6975
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment