]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
hwmon/coretemp: fix a broken error path
authorJean Delvare <khali@linux-fr.org>
Sun, 24 Jun 2007 00:16:24 +0000 (17:16 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Sun, 24 Jun 2007 15:59:10 +0000 (08:59 -0700)
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: Rudolf Marek <r.marek@assembler.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
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");