Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 299146
b: refs/heads/master
c: a65a6f1
h: refs/heads/master
v: v3
  • Loading branch information
Johan Hovold authored and Greg Kroah-Hartman committed Apr 10, 2012
1 parent 64dccde commit 8afb2f5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b446b96fd11b69b7c4ecd47d869cff9094fd8802
refs/heads/master: a65a6f14dc24a90bde3f5d0073ba2364476200bf
8 changes: 8 additions & 0 deletions trunk/drivers/usb/serial/usb-serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -1059,6 +1059,12 @@ int usb_serial_probe(struct usb_interface *interface,
serial->attached = 1;
}

/* Avoid race with tty_open and serial_install by setting the
* disconnected flag and not clearing it until all ports have been
* registered.
*/
serial->disconnected = 1;

if (get_free_serial(serial, num_ports, &minor) == NULL) {
dev_err(&interface->dev, "No more free serial devices\n");
goto probe_error;
Expand All @@ -1078,6 +1084,8 @@ int usb_serial_probe(struct usb_interface *interface,
"continuing\n");
}

serial->disconnected = 0;

usb_serial_console_init(debug, minor);

exit:
Expand Down

0 comments on commit 8afb2f5

Please sign in to comment.