projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
USB: serial: omninet: fix reference leaks at open
[firefly-linux-kernel-4.4.55.git]
/
drivers
/
usb
/
serial
/
opticon.c
diff --git
a/drivers/usb/serial/opticon.c
b/drivers/usb/serial/opticon.c
index 4b7bfb394a32aba025e8e07ad3384759ea1723d8..64bf258e7e00b2e260f77a1cdea9282cf920967d 100644
(file)
--- a/
drivers/usb/serial/opticon.c
+++ b/
drivers/usb/serial/opticon.c
@@
-142,7
+142,7
@@
static int opticon_open(struct tty_struct *tty, struct usb_serial_port *port)
usb_clear_halt(port->serial->dev, port->read_urb->pipe);
res = usb_serial_generic_open(tty, port);
- if (
!
res)
+ if (res)
return res;
/* Request CTS line state, sometimes during opening the current