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(). I found another interesting link describing similar thing, but much deeper inside the kernel: https://lkml.org/lkml/2012/2/13/383 It basically says it is a race effect. I need to think about this more. Why this does happen with SPI USB MAX3420 using 3.2.11. Never happens with 2.6.34.10?! Does NOT mean that even there race effect does not occur/exist. Zoran _______ Re: Forward porting of the USB Driver Controller from 26.34.10 to 3.2.11 On Tue, Mar 20, 2012 at 11:10:02AM +0000, Stojsavljevic, Zoran wrote: > Hello, > > After carefully analyzing the UDC code, I tried to forward port the UDC I am playing with from 2.6.34.10 to 3.2.11 kernel. > > Everything compiles and links, but when I try `modprobe g_zero`, the following trace happens (log imported at the end of @): > > [ 36.110506] kernel BUG at fs/sysfs/file.c:573! > [ 36.110595] invalid opcode: 0000 [#1] SMP > > Any idea why this does happen? Did you look at the code at fs/sysfs/file.c, line 573 to see what it is checking? -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@... More majordomo info at http://vger.kernel.org/majordomo-info.html -------------------------------------------------------------------------------------- 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