From: Roel Kluin Date: Thu, 1 Jul 2010 22:36:43 +0000 (+0200) Subject: USB: serial: io_ti: Don't return 0 if writing the download record failed X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1e29709e2e577a862dbffe1c89f8033255a322bb;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git USB: serial: io_ti: 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: Greg Kroah-Hartman --- diff --git a/drivers/usb/serial/io_ti.c b/drivers/usb/serial/io_ti.c index 0fca2659206f..03696b91bd6d 100644 --- a/drivers/usb/serial/io_ti.c +++ b/drivers/usb/serial/io_ti.c @@ -1321,7 +1321,7 @@ static int download_fw(struct edgeport_serial *serial) kfree(header); kfree(rom_desc); kfree(ti_manuf_desc); - return status; + return -EINVAL; } kfree(vheader);