USB: omninet: refactor read-urb processing
authorJohan Hovold <jhovold@gmail.com>
Tue, 16 Apr 2013 16:01:22 +0000 (18:01 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Apr 2013 17:05:34 +0000 (10:05 -0700)
commita6c042f95031afbeb0b0fb77643bc9211a3f2e2e
tree8ba25be6478d618d1cfd5ae7c2e3a6375909a191
parentd91641b161594672242b3c5d8656ad3b2ef58f34
USB: omninet: refactor read-urb processing

Refactor read-urb processing, and add sanity checks on header and data
lengths.

Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/omninet.c