From: Roel Kluin Date: Tue, 10 Aug 2010 21:29:19 +0000 (-0700) Subject: USB: serial: io_ti.c: don't return 0 if writing the download record failed X-Git-Tag: upstream/snapshot3+hdmi~13149^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fd6e5bbb241720715cee737f534496d7c0ae9022;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git USB: serial: io_ti.c: don't return 0 if writing the download record failed If the write download record failed we shouldn't return 0. Signed-off-by: Roel Kluin Signed-off-by: Andrew Morton Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/serial/io_ti.c b/drivers/usb/serial/io_ti.c index c3f27c3..a7cfc59 100644 --- a/drivers/usb/serial/io_ti.c +++ b/drivers/usb/serial/io_ti.c @@ -1284,7 +1284,7 @@ static int download_fw(struct edgeport_serial *serial) kfree(header); kfree(rom_desc); kfree(ti_manuf_desc); - return status; + return -EINVAL; } /* Update I2C with type 0xf2 record with correct