[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20111207160825.626823550@clark.kroah.org>
Date: Wed, 07 Dec 2011 08:06:56 -0800
From: Greg KH <gregkh@...e.de>
To: <linux-kernel@...r.kernel.org>, <stable@...r.kernel.org>,
stable@...nel.org
Cc: <torvalds@...ux-foundation.org>, <akpm@...ux-foundation.org>,
<alan@...rguk.ukuu.org.uk>,
Guenter Roeck <guenter.roeck@...csson.com>,
Greg KH <greg@...ah.com>, Jean Delvare <khali@...ux-fr.org>,
Durgadoss R <durgadoss.r@...el.com>,
Fenghua Yu <fenghua.yu@...el.com>
Subject: [36/80] hwmon: (coretemp) Fix oops on driver load
3.0-stable review patch. If anyone has any objections, please let me know.
------------------
From: Jean Delvare <khali@...ux-fr.org>
This is for stable kernel branch 3.0 only. Previous and later versions
have different code paths and are not affected by this bug.
If the CPU microcode is too old, the coretemp driver won't work. But
instead of failing gracefully, it currently oops. Check for NULL
platform device data to avoid this.
Signed-off-by: Jean Delvare <khali@...ux-fr.org>
Acked-by: Durgadoss R <durgadoss.r@...el.com>
Acked-by: Guenter Roeck <guenter.roeck@...csson.com>
Cc: Fenghua Yu <fenghua.yu@...el.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@...e.de>
---
drivers/hwmon/coretemp.c | 2 ++
1 file changed, 2 insertions(+)
--- a/drivers/hwmon/coretemp.c
+++ b/drivers/hwmon/coretemp.c
@@ -539,6 +539,8 @@ static void coretemp_add_core(unsigned i
return;
pdata = platform_get_drvdata(pdev);
+ if (!pdata)
+ return;
err = create_core_data(pdata, pdev, cpu, pkg_flag);
if (err)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists