USB: option.c: option_indat_callback: Resubmit some unsuccessful URBs
authorJames Maki <jamescmaki@gmail.com>
Sun, 21 Mar 2010 17:53:59 +0000 (12:53 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 20 May 2010 20:21:35 +0000 (13:21 -0700)
commite618834ef9608750a36d03d4aa9a9f931aa788d6
tree3b64a4822cc702b49c57d9ca2223d213fba3525f
parent71adf118946957839a13aa4d1094183e05c6c094
USB: option.c: option_indat_callback: Resubmit some unsuccessful URBs

All unsuccessful (non-zero status) URBs were being dropped. After N_IN_URBs are
dropped you will no longer be able to receive data.

This patch resubmits unsuccessful URBs unless the status indicates that it should
be terminated. The statuses that indicate the URB should be terminated was
gathered from other similar drivers.

Signed-off-by: James Maki <jamescmaki@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/option.c