]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (coretemp) Fix truncated name of alarm attributes
authorJean Delvare <khali@linux-fr.org>
Tue, 14 Jan 2014 14:59:55 +0000 (15:59 +0100)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 14 Jan 2014 17:47:52 +0000 (09:47 -0800)
commit2c7ea25bb64279d6f9cf08dac672cdfbe36c74a1
tree62dd2667a9e0868b18e7727dfd58947d514be196
parentfec79ce97c190c86976e07ed6490ef5a2cfc3aea
hwmon: (coretemp) Fix truncated name of alarm attributes

When the core number exceeds 9, the size of the buffer storing the
alarm attribute name is insufficient and the attribute name is
truncated. This causes libsensors to skip these attributes as the
truncated name is not recognized.

Reported-by: Andreas Hollmann <hollmann@in.tum.de>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: stable@vger.kernel.org
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/coretemp.c