From: Oliver Neukum Date: Thu, 25 Oct 2007 13:38:44 +0000 (+0200) Subject: USB: missing error check in emi26 X-Git-Tag: v2.6.24-rc2~136^2~4 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=cf4cf0bb89cbff95c5be8f8d3c68e55f38f94ba7;p=linux-2.6-omap-h63xx.git USB: missing error check in emi26 this drivers lacks an error check. Signed-off-by: Oliver Neukum Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/misc/emi26.c b/drivers/usb/misc/emi26.c index cd137577bb2..4a09b87bdd2 100644 --- a/drivers/usb/misc/emi26.c +++ b/drivers/usb/misc/emi26.c @@ -114,6 +114,10 @@ static int emi26_load_firmware (struct usb_device *dev) /* De-assert reset (let the CPU run) */ err = emi26_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