mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 09:19:51 +00:00
USB: io_ti.c: 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: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
10d0ca0242
commit
9800eb330d
1 changed files with 1 additions and 1 deletions
|
@ -1298,7 +1298,7 @@ static int download_fw(struct edgeport_serial *serial)
|
|||
kfree(header);
|
||||
kfree(rom_desc);
|
||||
kfree(ti_manuf_desc);
|
||||
return status;
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
/* verify the write -- must do this in order for
|
||||
|
|
Loading…
Reference in a new issue