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
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 <email@example.com>
Tested-by: Alexander Beregalov <firstname.lastname@example.org>
Signed-off-by: Guenter Roeck <email@example.com>
Signed-off-by: Jean Delvare <firstname.lastname@example.org>
1 file changed