[PATCH] md: fix ref-counting problems with kobjects in md
Thanks Greg. Cc: Greg KH <greg@kroah.com> Signed-off-by: Neil Brown <neilb@suse.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
d6065f7bf8
commit
9c79197761
@@ -1975,7 +1975,7 @@ memory = conf->max_nr_stripes * (sizeof(struct stripe_head) +
|
||||
}
|
||||
|
||||
/* Ok, everything is just fine now */
|
||||
conf->kobj.parent = kobject_get(&mddev->kobj);
|
||||
conf->kobj.parent = &mddev->kobj;
|
||||
strcpy(conf->kobj.name, "raid5");
|
||||
conf->kobj.ktype = &raid5_ktype;
|
||||
kobject_register(&conf->kobj);
|
||||
|
Reference in New Issue
Block a user