USB: serial: fix hang when opening port
authorMing Lei <tom.leiming@gmail.com>
Tue, 26 Mar 2013 02:49:55 +0000 (10:49 +0800)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 25 Apr 2013 19:25:25 +0000 (20:25 +0100)
commita796ce4827fcbbb269f9e105f6b852b0dec85217
treef987f7b4e0905c9c1aa29cc97f1cd5047806aad2
parentda07f4596510e8141e105c9502a25b568caba860
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>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/usb/serial/usb-serial.c