speedtch usbatm.c,1.7,1.8
Duncan Sands
duncan at infradead.org
Mon Feb 7 11:25:10 EST 2005
Update of /home/cvs/speedtch
In directory phoenix.infradead.org:/tmp/cvs-serv15278
Modified Files:
usbatm.c
Log Message:
Somehow managed to take one reference count too many - this patch and the
previous one by Roman.
Index: usbatm.c
===================================================================
RCS file: /home/cvs/speedtch/usbatm.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- usbatm.c 7 Feb 2005 16:22:56 -0000 1.7
+++ usbatm.c 7 Feb 2005 16:25:07 -0000 1.8
@@ -1043,7 +1043,7 @@
memset(instance, 0, sizeof(*instance));
- kref_init(&instance->refcount); /* one for USB */
+ kref_init(&instance->refcount); /* dropped in usbatm_usb_disconnect */
init_MUTEX(&instance->serialize);
@@ -1174,7 +1174,6 @@
}
usb_get_dev(dev);
- usbatm_get_instance(instance); /* dropped in usbatm_usb_disconnect */
usb_set_intfdata(intf, instance);
return 0;
More information about the Usbatm-commits
mailing list