]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
hwmon: (applesmc) Limit key length in warning messages
authorHenrik Rydberg <rydberg@euromail.se>
Thu, 7 Jun 2012 08:54:29 +0000 (04:54 -0400)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 18 Jun 2012 15:48:00 +0000 (08:48 -0700)
commitac852edb47b15900886ba2564eeeb13b3b526e3e
tree90cb765f808e48f7b956a0e979b99b0c4f44e3b3
parent485802a6c524e62b5924849dd727ddbb1497cc71
hwmon: (applesmc) Limit key length in warning messages

Key lookups may call read_smc() with a fixed-length key string,
and if the lookup fails, trailing stack content may appear in the
kernel log. Fixed with this patch.

Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Cc: stable@vger.kernel.org
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/applesmc.c