hwmon: (applesmc) Check key count before proceeding
authorHenrik Rydberg <rydberg@euromail.se>
Thu, 26 Sep 2013 06:33:16 +0000 (08:33 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Thu, 26 Sep 2013 10:48:43 +0000 (03:48 -0700)
commit5f4513864304672e6ea9eac60583eeac32e679f2
tree65f6f8c23358a92b038a43475bd7715a5f1d05b0
parent4b97280675f45c1650ee4e388bd711ecbb18c4b4
hwmon: (applesmc) Check key count before proceeding

After reports from Chris and Josh Boyer of a rare crash in applesmc,
Guenter pointed at the initialization problem fixed below. The patch
has not been verified to fix the crash, but should be applied
regardless.

Reported-by: <jwboyer@fedoraproject.org>
Suggested-by: Guenter Roeck <linux@roeck-us.net>
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