Re: Bug caused by the ftdi-sio driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Feb 23, 2012 at 12:36:21AM +0100, wzab wrote:
> It seems, that the problem is associated with the following part of the
> ftdi_sio.c driver (lines 1760-1770)
> 
> static int ftdi_8u2232c_probe(struct usb_serial *serial)
> {
>     struct usb_device *udev = serial->dev;
> 
>     dbg("%s", __func__);
> 
>     if (strcmp(udev->manufacturer, "CALAO Systems") == 0)
>         return ftdi_jtag_probe(serial);
> 
>     return 0;
> }
> 
> It seems, that the device returns empty manufacturer string. May it cause
> problem in call to strcmp?

Yes, that's exactly the problem, thanks for finding it for us.

Do you want to make up a patch for this fixing the problem (to do this,
read the file, Documentation/SubmittingPatches), or if not, I'll be glad
to do so, just let me know.

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux