Guenter Roeck bfa02b0da6 hwmon: (w83627ehf) Fix broken driver init
Commit 2265cef2 (hwmon: (w83627ehf) Properly report PECI and AMD-SI
sensor types) results in kernel panic if data->temp_label was not
initialized.
The problem was found with chip W83627DHG-P.

Add check if data->temp->label was set before use.

Based on incomplete patch by Alexander Beregalov.

Reported-by: Alexander Beregalov <a.beregalov@gmail.com>
Tested-by: Alexander Beregalov <a.beregalov@gmail.com>
Cc: stable@kernel.org
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
2011-11-06 20:25:18 +01:00
..
2011-10-02 00:19:34 +02:00
2011-11-03 11:22:44 -07:00
2011-09-21 16:19:44 -04:00
2011-11-03 15:49:24 -05:00
2011-09-27 18:08:04 +02:00
2011-10-28 15:03:54 +09:00
2011-11-02 16:07:03 -07:00
2011-10-24 21:00:34 +02:00