* [lm-sensors] [PATCH] hwmon: (coretemp) Fix oops on CPU offlining
@ 2011-12-10 20:41 Jean Delvare
2011-12-10 22:39 ` Guenter Roeck
0 siblings, 1 reply; 2+ messages in thread
From: Jean Delvare @ 2011-12-10 20:41 UTC (permalink / raw)
To: lm-sensors
From: Jean Delvare <khali@linux-fr.org>
Subject: hwmon: (coretemp) Fix oops on CPU offlining
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>
Cc: Guenter Roeck <guenter.roeck@ericsson.com>
Cc: Fenghua Yu <fenghua.yu@intel.com>
Cc: stable@kernel.org
---
Once again only kernel branch 3.0 is affected.
drivers/hwmon/coretemp.c | 2 ++
1 file changed, 2 insertions(+)
--- linux-3.0.orig/drivers/hwmon/coretemp.c 2011-12-10 14:05:08.000000000 +0100
+++ linux-3.0/drivers/hwmon/coretemp.c 2011-12-10 16:26:59.000000000 +0100
@@ -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);
--
Jean Delvare
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [lm-sensors] [PATCH] hwmon: (coretemp) Fix oops on CPU offlining
2011-12-10 20:41 [lm-sensors] [PATCH] hwmon: (coretemp) Fix oops on CPU offlining Jean Delvare
@ 2011-12-10 22:39 ` Guenter Roeck
0 siblings, 0 replies; 2+ messages in thread
From: Guenter Roeck @ 2011-12-10 22:39 UTC (permalink / raw)
To: lm-sensors
On Sat, Dec 10, 2011 at 03:41:15PM -0500, Jean Delvare wrote:
> From: Jean Delvare <khali@linux-fr.org>
> Subject: hwmon: (coretemp) Fix oops on CPU offlining
>
> 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>
> Cc: Guenter Roeck <guenter.roeck@ericsson.com>
> Cc: Fenghua Yu <fenghua.yu@intel.com>
> Cc: stable@kernel.org
Acked-by: Guenter Roeck <guenter.roeck@ericsson.com>
> ---
> Once again only kernel branch 3.0 is affected.
>
> drivers/hwmon/coretemp.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> --- linux-3.0.orig/drivers/hwmon/coretemp.c 2011-12-10 14:05:08.000000000 +0100
> +++ linux-3.0/drivers/hwmon/coretemp.c 2011-12-10 16:26:59.000000000 +0100
> @@ -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);
>
>
>
> --
> Jean Delvare
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-12-10 22:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-10 20:41 [lm-sensors] [PATCH] hwmon: (coretemp) Fix oops on CPU offlining Jean Delvare
2011-12-10 22:39 ` Guenter Roeck
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.