public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] USB: Don't return 0 if writing the download record failed
@ 2010-07-01 22:36 Roel Kluin
  2010-07-08 18:44 ` patch "USB: serial: io_ti: Don't return 0 if writing the download record failed" added to gregkh-2.6 tree gregkh
  0 siblings, 1 reply; 2+ messages in thread
From: Roel Kluin @ 2010-07-01 22:36 UTC (permalink / raw)
  To: Greg Kroah-Hartman, linux-usb, Andrew Morton, LKML

If the write download record failed we shouldn't return 0.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
---
Maybe a different error value is more appropriate?

diff --git a/drivers/usb/serial/io_ti.c b/drivers/usb/serial/io_ti.c
index 0fca265..03696b9 100644
--- a/drivers/usb/serial/io_ti.c
+++ b/drivers/usb/serial/io_ti.c
@@ -1321,7 +1321,7 @@ static int download_fw(struct edgeport_serial *serial)
 				kfree(header);
 				kfree(rom_desc);
 				kfree(ti_manuf_desc);
-				return status;
+				return -EINVAL;
 			}
 
 			kfree(vheader);

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-07-08 18:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-01 22:36 [PATCH] USB: Don't return 0 if writing the download record failed Roel Kluin
2010-07-08 18:44 ` patch "USB: serial: io_ti: Don't return 0 if writing the download record failed" added to gregkh-2.6 tree gregkh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox