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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 25 Jan 2014 16:27:11 +0000 (08:27 -0800)
commit02cb5b6b8b61c9e2e82cef752743168454cb227b
tree1b3724f108828848704d6950535b545fe5fc3ee1
parent3717eee3c4d1d44ded3bd84bf5f6437ec2aa5496
hwmon: (coretemp) Fix truncated name of alarm attributes

commit 3f9aec7610b39521c7c69d754de7265f6994c194 upstream.

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>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hwmon/coretemp.c