From: Axel Lin Date: Thu, 31 Jul 2014 01:43:19 +0000 (+0800) Subject: hwmon: (amc6821) Fix possible race condition bug X-Git-Tag: omap-for-v3.17/fixes-against-rc2~159^2~84 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf44819c98db11163f58f08b822d626c7a8f5188;p=pandora-kernel.git hwmon: (amc6821) Fix possible race condition bug 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 Cc: stable@vger.kernel.org Signed-off-by: Guenter Roeck --- Reading git-diff-tree failed