On Mon, May 13, 2002 at 04:26:36PM -0400, Johannes Erdfelt wrote: > > It's easy with the patch I sent to revert it to the 2.4 method of > reference counting: > > --- linux-2.5.15/drivers/usb/core/devio.c.old Mon May 13 16:17:55 2002 > +++ linux-2.5.15/drivers/usb/core/devio.c Mon May 13 16:22:25 2002 > @@ -502,6 +502,7 @@ > ret = -ENOMEM; > if (!(ps = kmalloc(sizeof(struct dev_state), GFP_KERNEL))) > goto out; > + usb_inc_dev_use(dev); > ret = 0; > ps->dev = dev; > ps->file = file; > @@ -538,6 +539,7 @@ > unlock_kernel(); > destroy_all_async(ps); > kfree(ps); > + usb_dec_dev_use(dev); > return 0; > }
That should be usb_get_dev(dev) and usb_put_dev(dev) now :) And yes, this proves my point too, the patch will stay. thanks, greg k-h _______________________________________________________________ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [EMAIL PROTECTED] _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
