RE: Forward porting of the USB Driver Controller from 2.6.34.10 to 3.2.11

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> > Greg,
> > 
> > I looked into the fs/sysfs/file.c, this was the obvious thing to do.
> > 
> > But the BUG_ON macro there does not say to me anything meaningful:
> >
> > BUG_ON(!kobj || !kobj->sd || !attr); in sysfs_create_file().
>
> You could add a printk at that point to see which of the three things is equal to NULL.
>
> Alan Stern

Applied your advice (BTW, the NULL pointer case should be incorporated in BUG_ON macro, don't you think).

Very strange things are  happening. Here is part of System.map (the closest region):

c17a4fb8 d dev_attr_a_hnp_support
c17a4fc8 d dev_attr_a_alt_hnp_support
c17a4fe0 d udc_driver
c17a5040 d memory
c17a5360 d max_udc_ops
c17a53a0 d max_ep_ops
c17a53e0 d max_device
c17a54d0 d max_resources
c17a5500 d serio_bus
c17a5538 d serio_event_list

The break/oooops occurs at:
kobj=0xc17a506c, kobj->sd = NULL, attr = 0xf817a914
It is referenced somewhere in the memory.
The closest address from kernel symbol table is memory: 0xc17a5040

Some pointer went dangling around (with address udc_driver), probably!?

Thank you,
Zoran

--------------------------------------------------------------------------------------
Intel GmbH
Dornacher Strasse 1
85622 Feldkirchen/Muenchen, Deutschland 
Sitz der Gesellschaft: Feldkirchen bei Muenchen
Geschaeftsfuehrer: Douglas Lusk, Peter Gleissner, Hannes Schwaderer
Registergericht: Muenchen HRB 47456 
Ust.-IdNr./VAT Registration No.: DE129385895
Citibank Frankfurt a.M. (BLZ 502 109 00) 600119052

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux