]> 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)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 4 Jul 2012 04:44:08 +0000 (05:44 +0100)
commit51b9f4cbf489c79d02e835f8b0819bb5f86f3660
treee0d61d75a9ce2ea1ba452394182cd89790ea34a8
parentd01f95936e0c3902197307e6e62c2673fa629bf4
hwmon: (applesmc) Limit key length in warning messages

commit ac852edb47b15900886ba2564eeeb13b3b526e3e upstream.

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>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/hwmon/applesmc.c