Skip to contentSkip to conversation

New: warnings on hcd rmmod: "dangling refs(N) to bus B" (fwd)

Bug 602 Martin J. Bligh 1 participant 1 message Apr 18, 2003

lore
Share & tools
lore
#0 lore raw

http://bugme.osdl.org/show_bug.cgi?id=602

Summary: warnings on hcd rmmod: "dangling refs(N) to bus B"
Kernel Version: 2.5.66
Status: NEW
Severity: low
Owner: [email protected]
Submitter: [email protected]

The bus refcounting mechanism is broken, it often produces warning messages like that one when modules are removed. The problem appears to be an extremely long-standing one, at least in terms of the how-to-reproduce I saw: - connect a device that won't immediately enumerate, so that setting its address needs to be retried (or similar error, like set_configuration failing) - unplug that device ... at this point the refcount is wrong, but you can't tell until - rmmod the relevant HCD. This particular cause of that message is because the bus refcount isn't released on error. The fix isn't as straightforward as it should be because of funky calling conventions ("longstanding", likely since 2.4), but it's not
complicated either.