patch-2.4.19 linux-2.4.19/drivers/usb/usb-skeleton.c
Next file: linux-2.4.19/drivers/usb/usb-uhci.c
Previous file: linux-2.4.19/drivers/usb/usb-ohci.h
Back to the patch index
Back to the overall index
- Lines: 25
- Date:
Fri Aug 2 17:39:45 2002
- Orig file:
linux-2.4.18/drivers/usb/usb-skeleton.c
- Orig date:
Mon Feb 25 11:38:07 2002
diff -urN linux-2.4.18/drivers/usb/usb-skeleton.c linux-2.4.19/drivers/usb/usb-skeleton.c
@@ -1,5 +1,5 @@
/*
- * USB Skeleton driver - 0.6
+ * USB Skeleton driver - 0.7
*
* Copyright (c) 2001 Greg Kroah-Hartman (greg@kroah.com)
*
@@ -22,6 +22,9 @@
*
* History:
*
+ * 2002_02_12 - 0.7 - zero out dev in probe function for devices that do
+ * not have both a bulk in and bulk out endpoint.
+ * Thanks to Holger Waechtler for the fix.
* 2001_11_05 - 0.6 - fix minor locking problem in skel_disconnect.
* Thanks to Pete Zaitcev for the fix.
* 2001_09_04 - 0.5 - fix devfs bug in skel_disconnect. Thanks to wim delvaux
@@ -540,6 +543,7 @@
err ("Out of memory");
goto exit;
}
+ memset (dev, 0x00, sizeof (*dev));
minor_table[minor] = dev;
interface = &udev->actconfig->interface[ifnum];
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)