diff options
author | NeilBrown <neilb@suse.de> | 2005-11-09 06:39:28 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-09 16:56:37 +0100 |
commit | 9c79197761b4c181a143dc6a6044f4e47d44bdcc (patch) | |
tree | 2b0f75aac9cab625f5e5b27ae5e4f30d2838c486 /drivers/md/raid5.c | |
parent | [PATCH] md: provide proper rcu_dereference / rcu_assign_pointer annotations i... (diff) | |
download | linux-9c79197761b4c181a143dc6a6044f4e47d44bdcc.tar.xz linux-9c79197761b4c181a143dc6a6044f4e47d44bdcc.zip |
[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>
Diffstat (limited to '')
-rw-r--r-- | drivers/md/raid5.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c index 061d265ed94e..246c9b1cc4a3 100644 --- a/drivers/md/raid5.c +++ b/drivers/md/raid5.c @@ -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); |