diff options
author | Jean Delvare <khali@linux-fr.org> | 2007-06-23 17:16:24 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-06-24 08:59:10 -0700 |
commit | 6d79af701d334777541136e914a9c0969b2ad307 (patch) | |
tree | ab0515c53d548080baf62622ee00a5f176a02268 /drivers/hwmon/coretemp.c | |
parent | bbf14513ff0e1301a767ed8610babcc34cc132e6 (diff) | |
download | kernel_samsung_crespo-6d79af701d334777541136e914a9c0969b2ad307.zip kernel_samsung_crespo-6d79af701d334777541136e914a9c0969b2ad307.tar.gz kernel_samsung_crespo-6d79af701d334777541136e914a9c0969b2ad307.tar.bz2 |
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.c | 1 |
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"); |