Commit 9800eb33 authored by Roel Kluin's avatar Roel Kluin Committed by Greg Kroah-Hartman

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: default avatarRoel Kluin <roel.kluin@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 10d0ca02
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment