Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fd6e5bbb authored by Roel Kluin's avatar Roel Kluin Committed by Greg Kroah-Hartman
Browse files

USB: serial: 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 461c3177
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1284,7 +1284,7 @@ static int download_fw(struct edgeport_serial *serial)
				kfree(header);
				kfree(rom_desc);
				kfree(ti_manuf_desc);
				return status;
				return -EINVAL;
			}

			/* Update I2C with type 0xf2 record with correct