lkml.org 
[lkml]   [2012]   [Feb]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: kobject (ffff88003ffbb4b8): tried to init an initialized object, something is seriously wrong.
On Fri, Feb 03, 2012 at 01:39:49PM -0800, Greg KH wrote:
> On Fri, Feb 03, 2012 at 03:59:53PM -0500, Konrad Rzeszutek Wilk wrote:
> > Hey Greg,
> >
> > With or without your previous patch (the one that added an cpu_device_release
> > function) I am getting this in 3.3-rc2. I did not get this in 3.2.
> >
> > I added some extra printks to make sure that the handle_vcpu_hotplug_event
> > code actually did call 'arch_unregister_cpu' which is certainly looks
> > to be doing.
> >
> > I hadn't done a bisection yet, but was wondering if this is related
> > to the previous issues with the sysdev. Or kobject getting more observant.
>
> No, it's related to the previous issue, let me knock up a patch to fix
> this as well...

Does this patch solve the problem for you?

thanks,

greg k-h

diff --git a/drivers/base/cpu.c b/drivers/base/cpu.c
index 23f2c4c..4dabf50 100644
--- a/drivers/base/cpu.c
+++ b/drivers/base/cpu.c
@@ -240,6 +240,7 @@ int __cpuinit register_cpu(struct cpu *cpu, int num)
int error;

cpu->node_id = cpu_to_node(num);
+ memset(&cpu->dev, 0x00, sizeof(struct device));
cpu->dev.id = num;
cpu->dev.bus = &cpu_subsys;
cpu->dev.release = cpu_device_release;

\
 
 \ /
  Last update: 2012-02-03 22:45    [W:0.054 / U:0.092 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site