]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
USB: serial: io_ti: Don't return 0 if writing the download record failed
authorRoel Kluin <roel.kluin@gmail.com>
Thu, 1 Jul 2010 22:36:43 +0000 (00:36 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 10 Aug 2010 21:35:38 +0000 (14:35 -0700)
If the write download record failed we shouldn't return 0.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/io_ti.c

index 0fca2659206f4e9b7b74ed847c92bbc25b326449..03696b91bd6d0d75ffc7c0ca523a9acd01e77777 100644 (file)
@@ -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);