]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commitdf66e8a2afef506e303f931741193c7cf8fe0794
tree45065263f4be47158b16204b3e1d1bedf547ce23
parent6f6ed696945c9c98fb6e0def32d29411d958a6fa
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