diff options
author | Roel Kluin <roel.kluin@gmail.com> | 2010-07-02 02:36:43 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-08-11 01:35:38 +0400 |
commit | 1e29709e2e577a862dbffe1c89f8033255a322bb (patch) | |
tree | 0ac6c832fc1c13cbd19dc5d1e67ea62162c7eef7 /drivers/usb/serial | |
parent | d0893264db29b9bfdb1bc66e731f4ed7f8b52795 (diff) | |
download | linux-1e29709e2e577a862dbffe1c89f8033255a322bb.tar.xz |
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 <roel.kluin@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/serial')
-rw-r--r-- | drivers/usb/serial/io_ti.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |