From: Axel Lin Date: Thu, 31 Jul 2014 01:43:19 +0000 (+0800) Subject: hwmon: (amc6821) Fix possible race condition bug X-Git-Tag: v3.2.64~198 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3e6d3af6998364cc2242dbc7a1d3eccd8bd25eba;p=pandora-kernel.git hwmon: (amc6821) Fix possible race condition bug commit cf44819c98db11163f58f08b822d626c7a8f5188 upstream. Ensure mutex lock protects the read-modify-write period to prevent possible race condition bug. In additional, update data->valid should also be protected by the mutex lock. Signed-off-by: Axel Lin Signed-off-by: Guenter Roeck Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed