From: Akinobu Mita <akinobu.mita@gmail.com>
To: Jiri Slaby <jirislaby@gmail.com>
Cc: Linux kernel mailing list <linux-kernel@vger.kernel.org>,
Greg KH <gregkh@suse.de>
Subject: Re: kobject_add failed with -EEXIST
Date: Tue, 21 Nov 2006 03:23:12 +0900 [thread overview]
Message-ID: <20061120182312.GA16006@APFDCB5C> (raw)
In-Reply-To: <4561E290.7060100@gmail.com>
On Mon, Nov 20, 2006 at 06:14:56PM +0100, Jiri Slaby wrote:
> Hi!
>
> Does anybody have some clue, what's wrong with the attached module?
> Kernel complains when the module is insmoded second time (DRIVER_DEBUG enabled):
Could you try this patch? I also had similar problem.
---
drivers/base/class.c | 2 ++
1 file changed, 2 insertions(+)
Index: work-fault-inject/drivers/base/class.c
===================================================================
--- work-fault-inject.orig/drivers/base/class.c
+++ work-fault-inject/drivers/base/class.c
@@ -163,6 +163,8 @@ int class_register(struct class * cls)
void class_unregister(struct class * cls)
{
pr_debug("device class '%s': unregistering\n", cls->name);
+ if (cls->virtual_dir)
+ kobject_unregister(cls->virtual_dir);
remove_class_attrs(cls);
subsystem_unregister(&cls->subsys);
}
next prev parent reply other threads:[~2006-11-20 18:29 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-20 17:14 kobject_add failed with -EEXIST Jiri Slaby
2006-11-20 17:27 ` Greg KH
2006-11-20 17:31 ` Jiri Slaby
2006-11-20 17:52 ` Greg KH
2006-11-21 10:49 ` Jiri Slaby
[not found] ` <4af2d03a0611241620h657de9b8jfb9310e19f68f426@mail.gmail.com>
2006-11-25 0:30 ` Fwd: " Jiri Slaby
2006-11-20 17:31 ` Greg KH
2006-11-20 17:42 ` Oliver Neukum
2006-11-20 17:47 ` Jiri Slaby
2006-11-20 18:15 ` Jiri Slaby
2006-11-20 18:23 ` Akinobu Mita [this message]
2006-11-20 18:56 ` Jiri Slaby
2006-11-20 19:53 ` [PATCH] driver core: delete virtual directory on class_unregister() Akinobu Mita
2006-11-20 20:34 ` Greg KH
2006-11-21 9:58 ` Akinobu Mita
2006-11-21 15:09 ` Cornelia Huck
2006-11-25 8:58 ` kobject_add failed with -EEXIST markus reichelt
-- strict thread matches above, loose matches on Subject: below --
2006-11-17 15:40 Jiri Slaby
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20061120182312.GA16006@APFDCB5C \
--to=akinobu.mita@gmail.com \
--cc=gregkh@suse.de \
--cc=jirislaby@gmail.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox