提交 9800eb33 编写于 作者: R Roel Kluin 提交者: 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: NRoel Kluin <roel.kluin@gmail.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 10d0ca02
...@@ -1298,7 +1298,7 @@ static int download_fw(struct edgeport_serial *serial) ...@@ -1298,7 +1298,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;
} }
/* verify the write -- must do this in order for /* verify the write -- must do this in order for
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册