]> git.karo-electronics.de Git - karo-tx-linux.git/commit
hwmon: (amc6821) Fix possible race condition bug
authorAxel Lin <axel.lin@ingics.com>
Thu, 31 Jul 2014 01:43:19 +0000 (09:43 +0800)
committerGuenter Roeck <linux@roeck-us.net>
Thu, 31 Jul 2014 04:42:37 +0000 (21:42 -0700)
commitcf44819c98db11163f58f08b822d626c7a8f5188
tree68af0f6580a73753e5c43bc51ba46a87aaa1a18b
parent1074d683a51f1aded3562add9ef313e75d557327
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>
drivers/hwmon/amc6821.c