On Sun, Jan 13, 2002 at 07:38:52PM +0100, Oliver Neukum wrote: > On Sunday 13 January 2002 19:20, Greg KH wrote: > > On Sun, Jan 13, 2002 at 07:00:12PM +0100, Oliver Neukum wrote: > > > Hi, > > > > > > I think there's a bug in the way the skeleton driver handles its usage > > > counting. The count is incremented on open() and decremented on > > > release(). However potentially there can be more open()s than release()s > > > resulting in an ununloadable module. > > > I am afraid that this bug may be more widespread. > > > > How can there be more calls to open() than release()? > > AFAIK release is called by fput only if the usage counter goes to zero, > yet open is called on every open syscall. So if you open the same device > more than once, you should have more calls to open than to release.
Actually, it looks like open() will only be called once, and then release() will only be called once. So everything is ok with the driver right now :) thanks, greg k-h _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel