]> git.baikalelectronics.ru Git - kernel.git/commit
USB: ir-usb: fix set_termios race
authorJohan Hovold <jhovold@gmail.com>
Thu, 13 May 2010 19:02:02 +0000 (21:02 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 20 May 2010 20:21:45 +0000 (13:21 -0700)
commit9bff9858bb07c6e51f6ff31e7c7e6ccf6f884613
tree45065263f4be47158b16204b3e1d1bedf547ce23
parent0d57472f6b8067e699763c17a483fb3bd4783935
USB: ir-usb: fix set_termios race

Use dynamically allocated urb for baudrate changes rather than
unconditionally submitting the port write urb which may already be in
use.

Compile-only tested.

Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/ir-usb.c