mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-28 17:41:50 +00:00
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>
This commit is contained in:
parent
d0893264db
commit
1e29709e2e
1 changed files with 1 additions and 1 deletions
|
@ -1321,7 +1321,7 @@ static int download_fw(struct edgeport_serial *serial)
|
||||||
kfree(header);
|
kfree(header);
|
||||||
kfree(rom_desc);
|
kfree(rom_desc);
|
||||||
kfree(ti_manuf_desc);
|
kfree(ti_manuf_desc);
|
||||||
return status;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
kfree(vheader);
|
kfree(vheader);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue