Messages in this thread | | | Date | Sat, 11 Oct 2003 11:56:26 +0200 (MEST) | From | Mikael Pettersson <> | Subject | Re: 2.6.0-test6 module autoloading and reference counting broken? |
| |
On Fri, 10 Oct 2003 15:25:20 +1000, Rusty Russell wrote: >In message <16253.27644.578089.345998@gargle.gargle.HOWL> you write: >> FYI, >> >> I'm seeing incorrect reference counting behaviour and module >> loading semi-failures in 2.6.0-test6. >> >> I have a misc char driver module which announces an alias >> via a MODULE_ALIAS("char-major-10-<nnn>") declaration. >> >> The first attempt by user-space to open the device node fails >> with ENODEV. However, afterwards the module _is_ loaded and its >> use count is 1 even though the user-space open() failed. > >Sounds like a refcount bug somewhere (in your module, maybe?). >There's nothing magic about modules loaded via kmod, even via >aliases, unless there's a bug in drivers/char/misc.c...
test6 did introduce a bug in drivers/char/misc.c causing the problems I described. It's been fixed in test7.
/Mikael - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |