USB: pl2302: clean up error handling in open
authorJohan Hovold <jhovold@gmail.com>
Sun, 6 Nov 2011 18:06:35 +0000 (19:06 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 15 Nov 2011 18:43:30 +0000 (10:43 -0800)
commitd4691c3fa3d371835b1eacb39066ab113c4b9d8c
tree19a1ed1b781a337d703444363787615e23930c06
parentdb6e9186c90188edea20aaa5161ea073440cc2a1
USB: pl2302: clean up error handling in open

Reorder urb submission and simply kill interrupt urb should read-urb
submission fail (rather than calling close).

Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/pl2303.c