]> git.karo-electronics.de Git - karo-tx-linux.git/commit
USB: serial: fix hang when opening port
authorMing Lei <tom.leiming@gmail.com>
Tue, 26 Mar 2013 02:49:55 +0000 (10:49 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 5 Apr 2013 16:26:03 +0000 (09:26 -0700)
commitf7b40a0bd1697e5b4f001ed043f03e298915f7c2
tree37dfff2e6572860d6a70b171144e70cc050ab6d0
parent86be053a795c17acaa6721dcc501a876368fd9d4
USB: serial: fix hang when opening port

commit eba0e3c3a0ba7b96f01cbe997680f6a4401a0bfc upstream.

Johan's 'fix use-after-free in TIOCMIWAIT' patchset[1] introduces
one bug which can cause kernel hang when opening port.

This patch initialized the 'port->delta_msr_wait' waitqueue head
to fix the bug which is introduced in 3.9-rc4.

[1], http://marc.info/?l=linux-usb&m=136368139627876&w=2

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