Skip to content
Commit 57090d5e authored by Pavel Herrmann's avatar Pavel Herrmann Committed by Andi Kleen
Browse files

hwmon: (max1111) Fix race condition causing NULL pointer



[ upstream commit d3f684f2 ]
 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
Signed-off-by: default avatarAndi Kleen <ak@linux.intel.com>
parent f537ef79
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment