]> git.baikalelectronics.ru Git - kernel.git/commit
USB: mos7840: fix race in register handling
authorJohan Hovold <jhovold@gmail.com>
Fri, 26 Jul 2013 09:55:17 +0000 (11:55 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 26 Jul 2013 21:14:09 +0000 (14:14 -0700)
commitbc005c68c5b0e55317c752776b8ab608ff0d10b8
tree900f44cde51c3523929b92222fc720a32bcd2811
parent0a3478b740e1a03f5830cec95a52eeb882707b6b
USB: mos7840: fix race in register handling

Fix race in mos7840_get_reg which unconditionally manipulated the
control urb (which may already be in use) by adding a control-urb busy
flag.

Cc: stable@vger.kernel.org
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/mos7840.c