Commit f0cefc01 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

usb skeleton driver:

	- fix by Holger Waechtler <holger@convergence.de> for if a device does
	  not have both a bulk in and bulk out endpoint.
parent c63f0032
/* /*
* USB Skeleton driver - 0.6 * USB Skeleton driver - 0.7
* *
* Copyright (c) 2001 Greg Kroah-Hartman (greg@kroah.com) * Copyright (c) 2001 Greg Kroah-Hartman (greg@kroah.com)
* *
...@@ -22,6 +22,9 @@ ...@@ -22,6 +22,9 @@
* *
* History: * 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. * 2001_11_05 - 0.6 - fix minor locking problem in skel_disconnect.
* Thanks to Pete Zaitcev for the fix. * Thanks to Pete Zaitcev for the fix.
* 2001_09_04 - 0.5 - fix devfs bug in skel_disconnect. Thanks to wim delvaux * 2001_09_04 - 0.5 - fix devfs bug in skel_disconnect. Thanks to wim delvaux
...@@ -542,6 +545,7 @@ static void * skel_probe(struct usb_device *udev, unsigned int ifnum, const stru ...@@ -542,6 +545,7 @@ static void * skel_probe(struct usb_device *udev, unsigned int ifnum, const stru
err ("Out of memory"); err ("Out of memory");
goto exit; goto exit;
} }
memset (dev, 0x00, sizeof (*dev));
minor_table[minor] = dev; minor_table[minor] = dev;
interface = &udev->actconfig->interface[ifnum]; interface = &udev->actconfig->interface[ifnum];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment