]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/usb/misc/emi62.c
USB: missing error check in emi62
[linux-2.6-omap-h63xx.git] / drivers / usb / misc / emi62.c
index 4758cc5ccebcd37acdc7330718079941f77b332c..d1362415922cfffedc6a330a08bdc83a6f2ef85c 100644 (file)
@@ -123,6 +123,10 @@ static int emi62_load_firmware (struct usb_device *dev)
 
        /* De-assert reset (let the CPU run) */
        err = emi62_set_reset(dev,0);
+       if (err < 0) {
+               err("%s - error loading firmware: error = %d", __FUNCTION__, err);
+               goto wraperr;
+       }
        msleep(250);    /* let device settle */
 
        /* 2. We upload the FPGA firmware into the EMI