lkml.org 
[lkml]   [2011]   [Dec]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[30/45] hwmon: (coretemp) Fix oops on CPU offlining
3.0-stable review patch.  If anyone has any objections, please let me know.

------------------

This is for stable kernel branch 3.0 only. Previous and later versions
have different code paths and are not affected by this bug.

This is the same fix as "hwmon: (coretemp) Fix oops on driver load"
but for the CPU offlining case. Sorry for missing it at first.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: Durgadoss R <durgadoss.r@intel.com>
Acked-by: Guenter Roeck <guenter.roeck@ericsson.com>
Cc: Fenghua Yu <fenghua.yu@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

---
drivers/hwmon/coretemp.c | 2 ++
1 file changed, 2 insertions(+)

--- a/drivers/hwmon/coretemp.c
+++ b/drivers/hwmon/coretemp.c
@@ -747,6 +747,8 @@ static void __cpuinit put_core_offline(u
return;

pdata = platform_get_drvdata(pdev);
+ if (!pdata)
+ return;

indx = TO_ATTR_NO(cpu);




\
 
 \ /
  Last update: 2011-12-16 20:57    [W:0.517 / U:4.768 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site