Skip to content

Commit

Permalink
USB: serial: io_ti: Don't return 0 if writing the download record failed
Browse files Browse the repository at this point in the history
If the write download record failed we shouldn't return 0.

Signed-off-by: Roel Kluin <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
RoelKluin authored and gregkh committed Aug 10, 2010
1 parent d089326 commit 1e29709
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/serial/io_ti.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1e29709

Please sign in to comment.