commit | cf44819c98db11163f58f08b822d626c7a8f5188 | [log] [tgz] |
---|---|---|
author | Axel Lin <axel.lin@ingics.com> | Thu Jul 31 09:43:19 2014 +0800 |
committer | Guenter Roeck <linux@roeck-us.net> | Wed Jul 30 21:42:37 2014 -0700 |
tree | 68af0f6580a73753e5c43bc51ba46a87aaa1a18b | |
parent | 1074d683a51f1aded3562add9ef313e75d557327 [diff] |
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 <axel.lin@ingics.com> Cc: stable@vger.kernel.org Signed-off-by: Guenter Roeck <linux@roeck-us.net>