summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/coretemp.c
diff options
context:
space:
mode:
authorJean Delvare <khali@linux-fr.org>2007-06-23 17:16:24 -0700
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-06-24 08:59:10 -0700
commit6d79af701d334777541136e914a9c0969b2ad307 (patch)
treeab0515c53d548080baf62622ee00a5f176a02268 /drivers/hwmon/coretemp.c
parentbbf14513ff0e1301a767ed8610babcc34cc132e6 (diff)
downloadop-kernel-dev-6d79af701d334777541136e914a9c0969b2ad307.zip
op-kernel-dev-6d79af701d334777541136e914a9c0969b2ad307.tar.gz
hwmon/coretemp: fix a broken error path
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>
Diffstat (limited to 'drivers/hwmon/coretemp.c')
-rw-r--r--drivers/hwmon/coretemp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/hwmon/coretemp.c b/drivers/hwmon/coretemp.c
index 0328382..6d54c8c 100644
--- a/drivers/hwmon/coretemp.c
+++ b/drivers/hwmon/coretemp.c
@@ -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");
OpenPOWER on IntegriCloud