Skip to contentSkip to conversation

USB: Don't return 0 if writing the download record failed

PATCH Applied Roel Kluin 2 participants 2 messages Jul 1, 2010 – Jul 8, 2010

Subsystems (2)
lore
Share & tools
lore

Roel Kluin

author
#0 lore raw

PATCH 1/1 USB: Don't return 0 if writing the download record failed

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

---
Maybe a different error value is more appropriate?

drivers/usb/serial/io_ti.c +1 -1
index 0fca265..03696b9 100644
@@ -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);
#1 lore raw

patch "USB: serial: io_ti: Don't return 0 if writing the download record failed" added to gregkh-2.6 tree

This is a note to let you know that I've just added the patch titled

USB: serial: io_ti: Don't return 0 if writing the download record failed

to my gregkh-2.6 tree which can be found in directory form at:
http://www.kernel.org/pub/linux/kernel/people/gregkh/gregkh-2.6/patches/
and in git form at:
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/patches.git

The filename of this patch is:
usb-serial-io_ti-don-t-return-0-if-writing-the-download-record-failed.patch

The patch will show up in the next release of the linux-next tree (usually sometime within the next 24 hours during the week.)

If this patch meets the merge guidelines for a bugfix, it should be merged into Linus's tree before the next major kernel release. If not, it will be merged into Linus's tree during the next merge window.

Either way, you will probably be copied on the patch when it gets sent to Linus for merging so that others can see what is happening in kernel development.

If you have any questions about this process, please let me know.

Quoted 1 line

From [email protected] Thu Jul 8 11:35:42 2010

From: Roel Kluin <[email protected]>
Date: Fri, 02 Jul 2010 00:36:43 +0200
Subject: USB: serial: io_ti: Don't return 0 if writing the download record failed
To: Greg Kroah-Hartman <[email protected]>, [email protected], Andrew Morton <[email protected]>, LKML <[email protected]>
Message-ID: <[email protected]>

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

---
 drivers/usb/serial/io_ti.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/serial/io_ti.c +1 -1
@@ -1321,7 +1321,7 @@ static int download_fw(struct edgeport_s
 				kfree(header);
 				kfree(rom_desc);
 				kfree(ti_manuf_desc);
-				return status;
+				return -EINVAL;
 			}
 
 			kfree(vheader);