From: Jean Delvare Date: Sun, 24 Jun 2007 00:16:24 +0000 (-0700) Subject: hwmon/coretemp: fix a broken error path X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6d79af701d334777541136e914a9c0969b2ad307;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git hwmon/coretemp: fix a broken error path Signed-off-by: Jean Delvare Cc: Rudolf Marek Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/hwmon/coretemp.c b/drivers/hwmon/coretemp.c index 0328382df8fa..6d54c8caed79 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");