From: Roel Kluin Date: Tue, 20 Jul 2010 22:29:08 +0000 (-0700) Subject: USB: io_ti.c: don't return 0 if writing the download record failed X-Git-Tag: v2.6.36-rc1~293^2~68 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9800eb330df0c1a8ef6f4123705eea691000e374;p=thirdparty%2Flinux.git USB: 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 03696b91bd6d0..dc47f986df57f 100644 --- a/drivers/usb/serial/io_ti.c +++ b/drivers/usb/serial/io_ti.c @@ -1298,7 +1298,7 @@ static int download_fw(struct edgeport_serial *serial) kfree(header); kfree(rom_desc); kfree(ti_manuf_desc); - return status; + return -EINVAL; } /* verify the write -- must do this in order for