diff options
author | Pavel Herrmann <morpheus.ibis@gmail.com> | 2011-07-17 18:39:19 +0200 |
---|---|---|
committer | Paul Gortmaker <paul.gortmaker@windriver.com> | 2012-05-17 11:21:11 -0400 |
commit | fd4eb5ed110c04d95e6f57dee0f6ebabfd4e20b0 (patch) | |
tree | 00985136d3e0402a76a1cb1b652855fa55460a69 /net/bridge/br_private.h | |
parent | 2d89eba9cc7be4dfabe523067bff245632181536 (diff) |
hwmon: (max1111) Fix race condition causing NULL pointer exception
commit d3f684f2820a7f42acef68bea6622d9032127fb2 upstream.
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>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Diffstat (limited to 'net/bridge/br_private.h')
0 files changed, 0 insertions, 0 deletions