USB: ftdi_sio: fix problem when the manufacture is a NULL string
[pandora-kernel.git] / drivers / usb / serial / ftdi_sio.c
index f030471..d170b2a 100644 (file)
@@ -1763,7 +1763,8 @@ static int ftdi_8u2232c_probe(struct usb_serial *serial)
 
        dbg("%s", __func__);
 
-       if (strcmp(udev->manufacturer, "CALAO Systems") == 0)
+       if ((udev->manufacturer) &&
+           (strcmp(udev->manufacturer, "CALAO Systems") == 0))
                return ftdi_jtag_probe(serial);
 
        return 0;