Linux MM tree latest commits
 help / color / mirror / Atom feed
* + usb-ftdi_sio-fix-error-message-on-close.patch added to -mm tree
@ 2009-11-24 20:38 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2009-11-24 20:38 UTC (permalink / raw)
  To: mm-commits; +Cc: jhovold, alan, greg


The patch titled
     usb: ftdi_sio: fix error message on close
has been added to the -mm tree.  Its filename is
     usb-ftdi_sio-fix-error-message-on-close.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find
out what to do about this

The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/

------------------------------------------------------
Subject: usb: ftdi_sio: fix error message on close
From: Johan Hovold <jhovold@gmail.com>

Resubmitting read urb fails with -EPERM if completion handler runs while
urb is being killed on close. This should not be reported as an error.

Signed-off-by: Johan Hovold <jhovold@gmail.com>
Cc: Greg KH <greg@kroah.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 drivers/usb/serial/ftdi_sio.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN drivers/usb/serial/ftdi_sio.c~usb-ftdi_sio-fix-error-message-on-close drivers/usb/serial/ftdi_sio.c
--- a/drivers/usb/serial/ftdi_sio.c~usb-ftdi_sio-fix-error-message-on-close
+++ a/drivers/usb/serial/ftdi_sio.c
@@ -1686,7 +1686,7 @@ static int ftdi_submit_read_urb(struct u
 			   urb->transfer_buffer_length,
 			   ftdi_read_bulk_callback, port);
 	result = usb_submit_urb(urb, mem_flags);
-	if (result)
+	if (result && result != -EPERM)
 		dev_err(&port->dev,
 			"%s - failed submitting read urb, error %d\n",
 							__func__, result);
_

Patches currently in -mm which might be from jhovold@gmail.com are

usb-ftdi_sio-fix-error-message-on-close.patch
usb-ftdi_sio-remove-obsolete-comment.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-11-24 20:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-24 20:38 + usb-ftdi_sio-fix-error-message-on-close.patch added to -mm tree akpm

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