hwmon/coretemp: fix a broken error path
[sfrench/cifs-2.6.git] / drivers / hwmon / coretemp.c
index 0328382df8fae74a3edf1e0560404cd8f6f3f18a..6d54c8caed79a05ebe7ad887aed935ac41101755 100644 (file)
@@ -185,6 +185,7 @@ static int __devinit coretemp_probe(struct platform_device *pdev)
                /* check for microcode update */
                rdmsr_on_cpu(data->id, MSR_IA32_UCODE_REV, &eax, &edx);
                if (edx < 0x39) {
+                       err = -ENODEV;
                        dev_err(&pdev->dev,
                                "Errata AE18 not fixed, update BIOS or "
                                "microcode of the CPU!\n");