From: Roel Kluin <roel.kluin@xxxxxxxxx> If the write download record failed we shouldn't return 0. Signed-off-by: Roel Kluin <roel.kluin@xxxxxxxxx> Cc: Greg KH <greg@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/usb/serial/io_ti.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN drivers/usb/serial/io_ti.c~drivers-usb-serial-io_tic-dont-return-0-if-writing-the-download-record-failed drivers/usb/serial/io_ti.c --- a/drivers/usb/serial/io_ti.c~drivers-usb-serial-io_tic-dont-return-0-if-writing-the-download-record-failed +++ a/drivers/usb/serial/io_ti.c @@ -1284,7 +1284,7 @@ static int download_fw(struct edgeport_s kfree(header); kfree(rom_desc); kfree(ti_manuf_desc); - return status; + return -EINVAL; } /* Update I2C with type 0xf2 record with correct _ -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html