Re: [2.6.22-rc7] khubd NULL deref oops...

Cornelia Huck <[email protected]>
Newsgroups gmane.linux.usb.devel,gmane.linux.kernel
Organization IBM Deutschland Entwicklung GmbH
Message-ID <[email protected]>
On Wed, 11 Jul 2007 17:41:13 -0400 (EDT),
Alan Stern <[email protected]> wrote:

> On Wed, 11 Jul 2007, Daniel J Blueman wrote:
> 
> > > Try disabling CONFIG_USB_SUSPEND.  It makes lots of USB bugs go away
> > 
> > I'll give it a shot. For the record, I wasn't trying to perform a
> > suspend at this time (or since booting).
> 
> I doubt that USB suspend has any connection with this problem.  It's
> clear that the problem occurs in the driver core when the SCSI core
> tries to unregister a device.  It's not directly related to USB at all.

Hm, it seems that the class device's kobject is not set up correctly
(at least, not its name) when make_class_name() is called. Might be
that it is unregistered before it has been added completely (at least,
before kobject_set_name() has been called).

> 
> In fact, it looks like the bug is connected with 
> CONFIG_SYSFS_DEPRECATED.  You can try to see what happens with that 
> switch disabled.

Turning on verbose driver core messages (CONFIG_DEBUG_DRIVER) while
leaving on CONFIG_SYSFS_DEPRECATED may also be worthwile.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.