]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7c82ee0a7f205cba7f6cfc95ee4dc480b6ec9ab5
tree65f6f8c23358a92b038a43475bd7715a5f1d05b0
parentd7abe49e2a64bf9cffbe058db35ab9262ef44878
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