From: Jason Wessel on
During the 2.6.32 development the use of serial->disc_mutex was
introduced. In usb_console_setup() the call to
usb_serial_get_by_index() will obtain this mutex. The
usb_console_setup() must release the mutex before it completes else
later calls to the usb serial core will hang.

Signed-off-by: Jason Wessel <jason.wessel(a)windriver.com>
Cc: Greg KH <gregkh(a)suse.de>
Cc: Alan Stern <stern(a)rowland.harvard.edu>

---
drivers/usb/serial/console.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/usb/serial/console.c b/drivers/usb/serial/console.c
index be086e4..166ba4e 100644
--- a/drivers/usb/serial/console.c
+++ b/drivers/usb/serial/console.c
@@ -176,6 +176,7 @@ static int usb_console_setup(struct console *co, char *options)
* indicate this port is now acting as a system console. */
port->console = 1;
retval = 0;
+ mutex_unlock(&serial->disc_mutex);

out:
return retval;
--
1.6.4.rc1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo(a)vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/