]> git.baikalelectronics.ru Git - kernel.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>
Tue, 26 Mar 2013 16:28:29 +0000 (09:28 -0700)
commit06f0b7fb327a0de31165df43fbe6f21c1c754040
treebf66256c3bf09f98ddc8e0c5f935f65035993f98
parent7e135d8b812e6a35cdf97a4d739fbdd0bc7b9bd7
USB: serial: fix hang when opening port

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

Cc: stable <stable@vger.kernel.org>
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