On Wed, Aug 18, 2004 at 10:56:09PM -0400, Kyle Harris wrote:
> Hi,
> 
> I'm trying to make this work. The driver only creates mulitple ports if there 
> are multiple bulk_out endpoints. My device has 2 bulk_in and one bulk_out.  
> So I made the following change:
> 
>  #ifdef CONFIG_USB_SERIAL_GENERIC
>         if (type == &usb_serial_generic_device) {
> -               num_ports = num_bulk_out;
> +               num_ports = max(num_bulk_out, num_bulk_in);
>                 if (num_ports == 0) {
>                         dev_err(&interface->dev, "Generic device with no bulk 
> out, not allowed.\n");
>                         kfree (serial);

How does this work for your device?  Your driver isn't the
usb_serial_generic_device, right?  What kernel version are you using?

> Then everything appears to work fine, until I plug in another, different 
> device (max_endpoints = 1) while the first (max_endpoints = 2) remains 
> inserted. Then I get a kernel oops due to a null dentry ptr passed to 
> create_dir() as follows:

That oops doesn't look like it came from this change, as it's saying it
happens when a module is being loaded.

thanks,

greg k-h


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to